public function _index()
 {
     $this->addParameter("email", "string", array(Flag::REQUIRED));
     $this->addParameter("password", "string", array(Flag::REQUIRED));
     $this->addParameter("image", "fileimage");
     $this->cleanParameters();
     //or $this->isValidParameters()
     //dump($this->parametersValue); exit;
     $this->pagedata["form"] = $this->crud->edit($this->id, $this->parametersMeta[$this->getMethod()], $this->parametersValue);
     return true;
 }
 public function _edit($setAdmin = true)
 {
     if ($setAdmin) {
         $this->setParameters();
     } else {
         $this->pagedata['formerro'] = 'Falha ao salvar o registro no banco de dados';
     }
     $this->setTemplateFile('crud_editar');
     $this->pagedata['titulo'] = empty($this->id) ? 'Nova página' : 'Alterar dados da página';
     $this->pagedata['form'] = $this->crud->edit($this->id, $this->parametersMeta[$this->getMethod()], $this->parametersValue);
     return true;
 }