コード例 #1
0
ファイル: User.php プロジェクト: rickyrobinett/morph
 public function __construct($id = null)
 {
     parent::__construct($id);
     $this->addProperty(new \morph\property\String('Username'))
          ->addProperty(new \morph\property\File('Avatar'));
 }
コード例 #2
0
ファイル: Aliased.php プロジェクト: rickyrobinett/morph
 public function __construct($id = null)
 {
     parent::__construct($id);
     $this->addProperty(new \morph\property\String('Name'), 'n');
 }
コード例 #3
0
ファイル: HasManyParent.php プロジェクト: rickyrobinett/morph
 public function __construct($id = null)
 {
     parent::__construct($id);
     $this->addProperty(new \morph\property\HasMany('Children', 'Child'));
     $this->addProperty(new \morph\property\String('Name'));
 }
コード例 #4
0
ファイル: StorageObject.php プロジェクト: rmsy/opentrackr
 public function __construct($id = null)
 {
     parent::__construct($id);
     $this->connect();
 }