prepareObject() защищенный Метод

Prepare an object copy for toObject()
protected prepareObject ( stdClass $object ) : stdClass
$object stdClass Object representation of the entity
Результат stdClass
Пример #1
0
 /**
  * {@inheritdoc}
  */
 protected function prepareObject($object)
 {
     $object = parent::prepareObject($object);
     $object->name = $this->getDisplayName();
     $object->username = $this->username;
     $object->language = $this->language;
     unset($object->read_access);
     return $object;
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 protected function prepareObject($object)
 {
     $object = parent::prepareObject($object);
     $object->title = $this->getDisplayName();
     $object->description = $this->description;
     $object->tags = $this->tags ? $this->tags : array();
     return $object;
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 protected function prepareObject($object)
 {
     $object = parent::prepareObject($object);
     $object->name = $this->getDisplayName();
     $object->description = $this->description;
     unset($object->read_access);
     return $object;
 }