示例#1
0
 /**
  * Most model-classes will be initialized by a uid or a database record. So
  * this is a common contructor.
  *
  * @param array|int $rowOrUid
  * @param string $tableName
  */
 public function __construct($rowOrUid, $tableName = 0)
 {
     parent::__construct($rowOrUid);
     $this->setTableName($tableName);
 }