Exemplo n.º 1
0
 /**
  * Implements a copy constructor to copy from Api_Models_Concept.
  *
  * @TODO Erorr handling on null/different object type initialization.
  * @param Api_Models_Concept $copyFrom
  */
 public function __construct(Api_Models_Concept $copyFrom)
 {
     parent::__construct($copyFrom->getData(), $copyFrom->getModel());
 }
Exemplo n.º 2
0
 /**
  * Copy constructor.
  * 
  * @param Api_Models_Concept $copyFrom
  */
 public function __construct(Api_Models_Concept $copyFrom)
 {
     parent::__construct(array_merge($copyFrom->getData(), array('class' => 'ConceptScheme')));
 }