public function toArray() { $selfArray = parent::toArray(); if ($this->_curso instanceof WeLearn_Cursos_Curso) { $selfArray['curso'] = $this->getCurso()->toArray(); } return $selfArray; }
public function toArray() { $selfArray = parent::toArray(); if ($this->_aula instanceof WeLearn_Cursos_Conteudo_Aula) { $selfArray['aula'] = $this->getAula()->toArray(); } return $selfArray; }