コード例 #1
0
ファイル: dbRecord.php プロジェクト: onysko/php_activerecord
 public function __construct($id = false, $className = null, $database = null)
 {
     parent::__construct($database);
 }
コード例 #2
0
ファイル: Navigation.php プロジェクト: samsoncms/api
 /**
  * Override standard view passing
  * @param string $prefix Prefix
  * @param array $restricted Collection of ignored entity fields
  * @return array Filled collection of key => values for view
  */
 public function toView($prefix = '', array $restricted = array())
 {
     return parent::toView($prefix, array_merge($restricted, array('parent', 'parents', 'children')));
 }