Exemplo n.º 1
0
	public function __construct($id = null) {
	    parent::__construct($id);

	    $this->addProperty(new Morph_Property_String('userName'))
	         ->addProperty(new Morph_Property_String('firstName'))
	         ->addProperty(new Morph_Property_String('lastName'))
	         ->addProperty(new Morph_Property_Date('dateOfBirth'))
	         ->addProperty(new Morph_Property_Integer('numberOfPosts', 0));

	}
Exemplo n.º 2
0
 public function __construct($id = null)
 {
     parent::__construct($id);
     $this->addProperty(new Morph_Property_Generic('TestField'));
 }
Exemplo n.º 3
0
 public function __construct($id = null)
 {
     parent::__construct($id);
     $this->addProperty(new Morph_Property_String('title'))->addProperty(new Morph_Property_String('author'))->addProperty(new Morph_Property_Integer('pageNumber'))->addProperty(new Morph_Property_Date('publishedDate'));
 }