Ejemplo n.º 1
0
 /**
  * To object method
  *
  * @param   bool $allFields         Convert all the fields
  * @param   bool $recursive         If the method should be run recursive
  * @param   bool $convertToDatabase Convert to database naming
  *
  * @return stdClass
  */
 public function toObject($allFields = false, $recursive = false, $convertToDatabase = true)
 {
     $data = parent::toObject($allFields, $recursive, $convertToDatabase);
     if (is_object($this->translationMethod)) {
         $data->translation_method = $this->translationMethod->id;
     }
     return $data;
 }
Ejemplo n.º 2
0
 /**
  * To object method
  *
  * @param   bool $allFields         Convert all the fields
  * @param   bool $recursive         If the method should be run recursive
  * @param   bool $convertToDatabase Convert to database naming
  *
  * @return stdClass
  */
 public function toObject($allFields = false, $recursive = false, $convertToDatabase = true)
 {
     $data = parent::toObject($allFields, $recursive, $convertToDatabase);
     $data->task_data = json_encode($data->task_data);
     return $data;
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  *
  * @return bool
  */
 public function remove()
 {
     NenoLog::log('Element deleted successfully', 2);
     return parent::remove();
 }