当前位置: 首页>>代码示例>>PHP>>正文


PHP DataHandler::getValueByArrayIndex方法代码示例

本文整理汇总了PHP中DataHandler::getValueByArrayIndex方法的典型用法代码示例。如果您正苦于以下问题:PHP DataHandler::getValueByArrayIndex方法的具体用法?PHP DataHandler::getValueByArrayIndex怎么用?PHP DataHandler::getValueByArrayIndex使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DataHandler的用法示例。


在下文中一共展示了DataHandler::getValueByArrayIndex方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setFetchArray

 public function setFetchArray($array)
 {
     $this->image_info_id = DataHandler::getValueByArrayIndex($array, "image_info_id");
     $this->image_info_type = DataHandler::getValueByArrayIndex($array, "image_info_type");
     $this->image_info_active = DataHandler::getValueByArrayIndex($array, "image_info_active");
     $this->image_info_url = DataHandler::getValueByArrayIndex($array, "image_info_url");
     $this->image_info_name = DataHandler::getValueByArrayIndex($array, "image_info_name");
     $this->image_info_description = DataHandler::getValueByArrayIndex($array, "image_info_description");
     $this->image_info_order = DataHandler::getValueByArrayIndex($array, "image_info_order");
     $this->image_info_locale = DataHandler::getValueByArrayIndex($array, "image_info_locale");
     $this->image_info_author = DataHandler::getValueByArrayIndex($array, "image_info_author");
     $this->request_image_id = DataHandler::getValueByArrayIndex($array, "image_id");
     $this->request_image_url = DataHandler::getValueByArrayIndex($array, "image_url");
     //abaixo, ATENÇÃO: Filedata
     $this->file_data = DataHandler::getValueByArrayIndex($array, "Filedata");
     $this->file_url = DataHandler::getValueByArrayIndex($array, "file_url");
     //info de requisição de thumb
     $this->request_max_width = DataHandler::getValueByArrayIndex($array, "max_width");
     $this->request_max_height = DataHandler::getValueByArrayIndex($array, "max_height");
     $this->request_crop = DataHandler::getValueByArrayIndex($array, "crop");
     $this->request_direct_show = DataHandler::getValueByArrayIndex($array, "direct_show");
     $this->request_natural_size = DataHandler::getValueByArrayIndex($array, "natural_size");
     //info de vinculo
     $this->table = DataHandler::getValueByArrayIndex($array, "table");
     $this->table_id = DataHandler::getValueByArrayIndex($array, "table_id");
 }
开发者ID:reytuty,项目名称:facil,代码行数:26,代码来源:ImageInfoPostVO.php

示例2: setFetchArray

 public function setFetchArray($array)
 {
     //print_r($array);
     $this->id = DataHandler::getValueByArrayIndex($array, "id");
     $this->active = DataHandler::getValueByArrayIndex($array, "active");
     $this->name = DataHandler::getValueByArrayIndex($array, "name");
     $this->title = DataHandler::getValueByArrayIndex($array, "title");
     $this->hat = DataHandler::getValueByArrayIndex($array, "hat");
     $this->description = DataHandler::getValueByArrayIndex($array, "description");
     $this->content = DataHandler::getValueByArrayIndex($array, "content");
     $this->author = DataHandler::getValueByArrayIndex($array, "author");
     $this->template_url = DataHandler::getValueByArrayIndex($array, "template_url");
     $this->slug = DataHandler::getValueByArrayIndex($array, "slug");
     $this->key_words = DataHandler::getValueByArrayIndex($array, "key_words");
     $this->date = DataHandler::getValueByArrayIndex($array, "date");
     $this->date_in = DataHandler::getValueByArrayIndex($array, "date_in");
     $this->date_out = DataHandler::getValueByArrayIndex($array, "date_out");
     $this->order = DataHandler::getValueByArrayIndex($array, "order");
     $this->request_table_id = DataHandler::getValueByArrayIndex($array, "table_id");
     $this->request_table = DataHandler::getValueByArrayIndex($array, "table");
     $this->request_content_id = DataHandler::getValueByArrayIndex($array, "content_id");
     $this->request_slug = DataHandler::getValueByArrayIndex($array, "slug");
     $this->request_locale = DataHandler::getValueByArrayIndex($array, "locale");
     $this->request_quant_start = DataHandler::getValueByArrayIndex($array, "quant_start");
     $this->request_quant_limit = DataHandler::getValueByArrayIndex($array, "quant_limit");
     $this->request_type_of_return = DataHandler::getValueByArrayIndex($array, "type_of_return");
 }
开发者ID:reytuty,项目名称:facil,代码行数:27,代码来源:ContentInfoPostVO.php

示例3: setFetchArray

 public function setFetchArray($array)
 {
     //print_r($array);
     $this->captcha_code = DataHandler::getValueByArrayIndex($array, "captcha_code");
     $this->captcha_image = DataHandler::getValueByArrayIndex($array, "captcha_image");
     $this->captcha_value = DataHandler::getValueByArrayIndex($array, "captcha_value");
 }
开发者ID:reytuty,项目名称:facil,代码行数:7,代码来源:CaptchaInfoPostVO.php

示例4: setFetchArray

 public function setFetchArray($array)
 {
     //print_r($array);
     $this->host = DataHandler::getValueByArrayIndex($array, "host");
     $this->smtp_auth = DataHandler::getValueByArrayIndex($array, "smtp_auth") == NULL ? FALSE : TRUE;
     $this->username = DataHandler::getValueByArrayIndex($array, "username");
     $this->password = DataHandler::getValueByArrayIndex($array, "password");
     $this->from = DataHandler::getValueByArrayIndex($array, "from");
     $this->from_name = DataHandler::getValueByArrayIndex($array, "from_name");
     $this->to = DataHandler::getValueByArrayIndex($array, "to");
     $this->is_html = DataHandler::getValueByArrayIndex($array, "is_html") == NULL ? FALSE : TRUE;
     $this->subject = DataHandler::getValueByArrayIndex($array, "subject");
     $this->add_address = DataHandler::getValueByArrayIndex($array, "add_address");
     $this->body = DataHandler::getValueByArrayIndex($array, "body");
     if (DataHandler::getValueByArrayIndex($array, "char_set") != NULL) {
         switch (strtolower(DataHandler::getValueByArrayIndex($array, "char_set"))) {
             case "iso-8859-1":
                 $this->char_set = "ISO-8859-1";
                 break;
             case "utf-8":
             default:
                 $this->char_set = "UTF-8";
                 break;
         }
     }
 }
开发者ID:reytuty,项目名称:facil,代码行数:26,代码来源:MailInfoPostVO.php

示例5: setFetchArray

 /**
  * precisa enviar uma array dentro dos padr�es dessa VO, pode enviar diretamente o $_POST
  * @param (array) $array_dados
  * @return void
  */
 function setFetchArray($array_dados)
 {
     $this->setId(DataHandler::getValueByArrayIndex($array_dados, "id"));
     $this->setName(DataHandler::getValueByArrayIndex($array_dados, "name"));
     $this->setConfig(DataHandler::getValueByArrayIndex($array_dados, "config"));
     $this->setCountryId(DataHandler::getValueByArrayIndex($array_dados, "country_id"));
     $this->setCountryName(DataHandler::getValueByArrayIndex($array_dados, "country_name"));
     $this->setActive(DataHandler::getValueByArrayIndex($array_dados, "active"));
 }
开发者ID:reytuty,项目名称:facil,代码行数:14,代码来源:StateVO.class.php

示例6: setFetchArray

 /**
  * precisa enviar uma array dentro dos padr�es dessa VO, pode enviar diretamente o $_POST
  * @param (array) $array_dados
  * @return void
  */
 function setFetchArray($array_dados)
 {
     $this->id = DataHandler::getValueByArrayIndex($array_dados, "id");
     $this->category_id = DataHandler::getValueByArrayIndex($array_dados, "category_id");
     $this->active = DataHandler::getValueByArrayIndex($array_dados, "active");
     $this->name = DataHandler::getValueByArrayIndex($array_dados, "name");
     $this->slug = DataHandler::getValueByArrayIndex($array_dados, "slug");
     $this->order = DataHandler::getValueByArrayIndex($array_dados, "order");
 }
开发者ID:reytuty,项目名称:facil,代码行数:14,代码来源:CategoryVO.class.php

示例7: getZipedFiles

 /**
  * envie por post uma array de ids de files, só os ids
  * file/get_ziped_files
  */
 public function getZipedFiles()
 {
     if (!UserClient::getId() > 0) {
         //nao tem permissao
         Navigation::redirect("405");
         exit;
     }
     $array_file_ids = DataHandler::getValueByArrayIndex($_POST, "file_id");
     //Debug::print_r($_REQUEST);
     $array_file_vo = array();
     if (is_array($array_file_ids)) {
         foreach ($array_file_ids as $id) {
             $FileVO = new FileVO();
             $Result = $FileVO->setId($id, TRUE);
             if ($Result->success == TRUE) {
                 $array_file_vo[] = $FileVO;
             }
         }
     } else {
         //erro, não é uma array, verifica se pelo menos é 1 único id
         $id = DataHandler::forceInt($array_file_ids);
         if ($id > 0) {
             //é um id único
             $FileVO = new FileVO();
             $Result = $FileVO->setId($id, TRUE);
             if ($Result->success == TRUE) {
                 $array_file_vo[] = $FileVO;
             }
         } else {
             //erro mesmo, esse dado é zoado, estoura excessão
             throw new Exception("No ids sended", 404);
             exit;
         }
     }
     //a pasta zip precisa existir
     DataHandler::createFolderIfNotExist("upload/zip/");
     //verifica o nome do arquivo baseado nos ids enviados conforme regra inventada agora
     $zip_name = "upload/zip/" . md5(implode("|", $array_file_ids));
     DataHandler::createFolderIfNotExist($zip_name);
     $zip_name = $zip_name . "/teto.zip";
     if (!file_exists($zip_name)) {
         //echo Debug::li($zip_name);exit();
         $Zip = new ZipArchive();
         $Zip->open($zip_name, ZipArchive::CREATE);
         foreach ($array_file_vo as $FileVO) {
             $url = $FileVO->getUrl();
             $array = explode("/", $url);
             $file = $array[count($array) - 1];
             $Zip->addFile($url, $file);
         }
         $Zip->close();
     }
     header("Location: " . Config::getRootPath($zip_name));
     exit;
 }
开发者ID:reytuty,项目名称:facil,代码行数:59,代码来源:File.php

示例8: setFetchArray

 /**
  * precisa enviar uma array dentro dos padr�es dessa VO, pode enviar diretamente o $_POST
  * @param (array) $array_dados
  * @return void
  */
 function setFetchArray($array_dados)
 {
     $this->id = DataHandler::getValueByArrayIndex($array_dados, "id");
     $this->name = DataHandler::getValueByArrayIndex($array_dados, "name");
     $this->active = DataHandler::getValueByArrayIndex($array_dados, "active");
     $this->description = DataHandler::getValueByArrayIndex($array_dados, "description");
     $this->type = DataHandler::getValueByArrayIndex($array_dados, "type");
     $this->url = DataHandler::getValueByArrayIndex($array_dados, "url");
     $this->order = DataHandler::getValueByArrayIndex($array_dados, "order");
     $this->author = DataHandler::getValueByArrayIndex($array_dados, "author");
     $this->locale = DataHandler::getValueByArrayIndex($array_dados, "locale");
 }
开发者ID:reytuty,项目名称:facil,代码行数:17,代码来源:FileVO.class.php

示例9: setFetchArray

 /**
  * precisa enviar uma array dentro dos padr�es dessa VO, pode enviar diretamente o $_POST
  * @param (array) $array_dados
  * @return void
  */
 function setFetchArray($array_dados)
 {
     $this->id = DataHandler::getValueByArrayIndex($array_dados, "id");
     $this->active = DataHandler::getValueByArrayIndex($array_dados, "active");
     $this->user_id = DataHandler::getValueByArrayIndex($array_dados, "user_id");
     $this->table = DataHandler::getValueByArrayIndex($array_dados, "table");
     $this->table_id = DataHandler::getValueByArrayIndex($array_dados, "table_id");
     $this->title = DataHandler::getValueByArrayIndex($array_dados, "title");
     $this->description = DataHandler::getValueByArrayIndex($array_dados, "description");
     $this->date = DataHandler::convertDateToDB(DataHandler::getValueByArrayIndex($array_dados, "date"));
     $this->order = DataHandler::getValueByArrayIndex($array_dados, "order");
 }
开发者ID:reytuty,项目名称:facil,代码行数:17,代码来源:CommentVO.class.php

示例10: setFetchArray

 /**
  * precisa enviar uma array dentro dos padr�es dessa VO, pode enviar diretamente o $_POST
  * @param (array) $array_dados
  * @return void
  */
 function setFetchArray($array_dados)
 {
     $this->id = DataHandler::getValueByArrayIndex($array_dados, "id");
     $this->active = DataHandler::getValueByArrayIndex($array_dados, "active");
     $this->name = DataHandler::getValueByArrayIndex($array_dados, "name");
     $this->link = DataHandler::getValueByArrayIndex($array_dados, "link");
     $this->content = DataHandler::getValueByArrayIndex($array_dados, "content");
     $this->image_url = DataHandler::getValueByArrayIndex($array_dados, "image_url");
     $this->date = DataHandler::getValueByArrayIndex($array_dados, "date");
     $this->date_in = DataHandler::getValueByArrayIndex($array_dados, "date_in");
     $this->date_out = DataHandler::getValueByArrayIndex($array_dados, "date_out");
     $this->order = DataHandler::getValueByArrayIndex($array_dados, "order");
 }
开发者ID:reytuty,项目名称:facil,代码行数:18,代码来源:HighLightsVO.class.php

示例11: add

 public function add()
 {
     //name
     $nome = DataHandler::getValueByArrayIndex($_POST, "nome");
     //title
     $sobreNome = DataHandler::getValueByArrayIndex($_POST, "sobreNome");
     //author
     $email = DataHandler::getValueByArrayIndex($_POST, "email");
     //hat
     $companhia = DataHandler::getValueByArrayIndex($_POST, "companhia");
     //slug
     $profissao = DataHandler::getValueByArrayIndex($_POST, "provissao");
     //key_words
     $arquiteto = DataHandler::getValueByArrayIndex($_POST, "arquiteto");
     $erros = array();
     //validação
     if (!Validation::validateEmail($email)) {
         $erros[] = "email inválido";
     }
     if (!$nome) {
         $erros[] = "nome inválido";
     }
     if (!$sobreNome) {
         $erros[] = "sobrenome incorreto";
     }
     $ReturnResultVO = new ReturnResultVO($erros);
     if (!count($erros) > 0) {
         //nao tem erros na validação
         $ContentSiteVO = new ContentSiteVO();
         $ContentSiteVO->setName($nome);
         $ContentSiteVO->setTitle($sobreNome);
         $ContentSiteVO->setAuthor($email);
         $ContentSiteVO->setHat($companhia);
         $ContentSiteVO->setSlug($profissao);
         $ContentSiteVO->setKeyWords($arquiteto);
         $ReturnResultVO = $ContentSiteVO->commit();
         if ($ReturnResultVO->success) {
             //agora poe esse content na categoria correta
             $CategoryVO = new CategoryVO();
             echo "id de category necessária para newslatter funcionar";
             exit;
             $CategoryVO->setId(127, TRUE);
             if ($ContentSiteVO->getId() > 0) {
                 $CategoryVO->addLink("newslatter", $ContentSiteVO->getId());
                 $CategoryVO->commit();
             }
         }
     }
     echo $ReturnResultVO->toJson();
     exit;
 }
开发者ID:reytuty,项目名称:facil,代码行数:51,代码来源:Newsletter.php

示例12: setFetchArray

 /**
  * precisa enviar uma array dentro dos padr�es dessa VO, pode enviar diretamente o $_POST
  * @param (array) $array_dados
  * @return void
  */
 function setFetchArray($array_dados)
 {
     $this->id = DataHandler::getValueByArrayIndex($array_dados, "id");
     $this->active = DataHandler::getValueByArrayIndex($array_dados, "active");
     $this->table = DataHandler::getValueByArrayIndex($array_dados, "table");
     $this->table_id = DataHandler::getValueByArrayIndex($array_dados, "table_id");
     $this->name = DataHandler::getValueByArrayIndex($array_dados, "name");
     $this->type = DataHandler::getValueByArrayIndex($array_dados, "type");
     $this->locale = DataHandler::getValueByStdObjectIndex($obj_dados, "locale");
     $this->varchar = DataHandler::getValueByStdObjectIndex($obj_dados, "varchar");
     $this->text = DataHandler::getValueByStdObjectIndex($obj_dados, "text");
     $this->number = DataHandler::getValueByStdObjectIndex($obj_dados, "number");
     $this->int = DataHandler::getValueByArrayIndex($array_dados, "int");
     $this->date = DataHandler::convertDateToDB(DataHandler::getValueByArrayIndex($array_dados, "date"));
 }
开发者ID:reytuty,项目名称:facil,代码行数:20,代码来源:ParametherVO.class.php

示例13: setFetchArray

 /**
  * precisa enviar uma array dentro dos padr�es dessa VO, pode enviar diretamente o $_POST
  * @param (array) $array_dados
  * @return void
  */
 function setFetchArray($array_dados)
 {
     $this->id = DataHandler::getValueByArrayIndex($array_dados, "id");
     $this->state_id = DataHandler::getValueByArrayIndex($array_dados, "state_id");
     $this->country = DataHandler::getValueByArrayIndex($array_dados, "country");
     $this->state = DataHandler::getValueByArrayIndex($array_dados, "state");
     $this->alias = DataHandler::getValueByArrayIndex($array_dados, "alias");
     $this->street = DataHandler::getValueByArrayIndex($array_dados, "street");
     $this->number = DataHandler::getValueByArrayIndex($array_dados, "number");
     $this->complement = DataHandler::getValueByArrayIndex($array_dados, "complement");
     $this->neighborhood = DataHandler::getValueByArrayIndex($array_dados, "neighborhood");
     $this->zip_code = DataHandler::getValueByArrayIndex($array_dados, "zip_code");
     $this->city = DataHandler::getValueByArrayIndex($array_dados, "city");
     $this->order = DataHandler::getValueByArrayIndex($array_dados, "order");
 }
开发者ID:reytuty,项目名称:facil,代码行数:20,代码来源:AddressVO.class.php

示例14: update

 /**
  * /backend/image/update/id.N/
  * e por post enviar descricao
  * @return void da echo de string
  */
 public function update()
 {
     $ReturnResultVO = new ReturnResultVO();
     $id = DataHandler::forceInt(DataHandler::getValueByArrayIndex($this->arrayVariable, "id"));
     $descricao = DataHandler::forceInt(DataHandler::getValueByArrayIndex($_POST, "descricao"));
     if ($id > 0) {
         $ImageVO = new ImageVO();
         $ReturnResultVO = $ImageVO->setId($id, TRUE);
         if ($ReturnResultVO->success) {
             $ImageVO->setDescription($descricao);
             $ReturnResultVO = $ImageVO->commit();
         }
     }
     echo $ReturnResultVO->toJson();
     exit;
 }
开发者ID:reytuty,项目名称:facil,代码行数:21,代码来源:Image.php

示例15: check

 public function check()
 {
     //busca o post
     $login = DataHandler::getValueByArrayIndex($_POST, "login");
     $password = DataHandler::getValueByArrayIndex($_POST, "password");
     //iniciando o retorno padrao em http client ajax
     $returnResult = new ReturnResultVO();
     //se não validar retornar erro
     if (!Validation::blank($password, 1) && !Validation::blank($login, 1)) {
         $returnResult->success = 0;
         $returnResult->message = "Envie Login e Senha";
     } else {
         //cadastra o usuario e os detalhes do mesmo
         $DAO = UserDetailDAO::getInstance();
         $ReturnDataVO = $DAO->checkLogin($login, $password);
         //print_r($ReturnDataVO);
         if ($ReturnDataVO->success && count($ReturnDataVO->result) > 0) {
             if ($ReturnDataVO->result[0]->user_type_id == Config::ADMIN_USER_TYPE_ID || $ReturnDataVO->result[0]->user_type_id == Config::DEVELOPER_USER_TYPE_ID) {
                 UserClient::setId($ReturnDataVO->result[0]->id);
                 UserClient::setTypeId($ReturnDataVO->result[0]->user_type_id);
                 UserClient::setActiveTime(time());
                 //setando sucesso true caso tenha dado certo
                 $returnResult->success = $ReturnDataVO->success;
                 $returnResult->message = "sucesso ao logar";
             } else {
                 //print_r($ReturnDataVO);
                 $returnResult->success = 0;
                 $returnResult->message = "Usuario sem permissão!";
             }
         } else {
             //print_r($ReturnDataVO);
             $returnResult->success = 0;
             $returnResult->message = "Erro ao Logar!";
         }
     }
     //Debug::print_r($returnResult); exit();
     if ($returnResult->success) {
         if ($this->to != "") {
             Navigation::redirect($this->to);
         } else {
             Navigation::redirect("backend");
         }
     } else {
         return $this->init($returnResult);
     }
 }
开发者ID:reytuty,项目名称:facil,代码行数:46,代码来源:Login.php


注:本文中的DataHandler::getValueByArrayIndex方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。