File: phptricksORM/Command/Templates/model.template

Recommend this page to a friend!
  Classes of mohammad anzawi  >  PHP PDO database class  >  phptricksORM/Command/Templates/model.template  >  Download  
File: phptricksORM/Command/Templates/model.template
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP PDO database class
Access databases using PDO
Author: By
Last change:
Date: 7 months ago
Size: 217 bytes
 

Contents

Class file image Download
<?php

use PHPtricks\Orm\Model;

class {%
CLASS_NAME%} extends Model
{
    protected
$_table = '{%TABLE_NAME%}';

    public function
getAllDataAsArrayOrObject()
    {
        return
$this->select()->results();
    }
}


For more information send a message to info at phpclasses dot org.