/** * Constructor * @param string name of the corresponding class */ function __construct($name, $table = false) { parent::__construct($name); // by default use the class name as the db table name $this->setTable($table ? $table : $name); // set compile time only when not testing if (!defined('EP_TESTING_NOW')) { // record the compile time $this->setCompileTime(); } }
/** * Constructor * @param $name * @param epQueryAliasManager &$am */ public function __construct($name) { // call parent to set name and child key ('Name') parent::__construct($name, 'Name'); // set up the EZPDO runtime manager if not already if (!self::$em) { self::$em =& epManager::instance(); } // initialize class2alias lookup array $this->class2alias = array(); }