/** * Construtor * * @param int $id caso seja informado, inicializa o objeto com o indice definido */ public function __construct($id = 0) { $perfil = new Perfil(Perfil::PROFESSOR, "public.usuario_professor"); parent::__construct($perfil, "professor_"); if ((int) $id) { $this->setId($id); } }
/** * Construtor * * @param int $id Caso seja informado, define o indice do responsável instanciado */ public function __construct($id = 0) { $perfil = new Perfil(Perfil::RESPONSAVEL, "public.usuario_responsavel"); parent::__construct($perfil, "responsavel_"); if ((int) $id) { $this->setId($id); } $this->dependentes = array(); }
/** * Construtor * @param int $id Caso seja informado, define o id do aluno instanciado */ public function __construct($id = 0) { $perfil = new Perfil(Perfil::ALUNO, "public.usuario_aluno"); parent::__construct($perfil, "aluno_"); if ((int) $id) { $this->setId($id); } $this->responsavel = new Responsavel(); }
/** * Construtor * @param int $id caso seja informado, inicializa o objeto com o indice definido */ public function __construct($id = 0) { $perfil = new Perfil(Perfil::COORDENADOR, "public.usuario_coordenador"); parent::__construct($perfil, "coordenador_"); if ((int) $id) { $this->setId($id); } $this->coordenacao = new Coordenacao(); $this->tiposValidos = array(self::TIPO_COORDENADOR => "Coordenador", self::TIPO_AUXILIAR => "Auxiliar", self::TIPO_FORMATIVO => "Formativo", self::TIPO_SOEP => "SOEP"); }