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


PHP gv函数代码示例

本文整理汇总了PHP中gv函数的典型用法代码示例。如果您正苦于以下问题:PHP gv函数的具体用法?PHP gv怎么用?PHP gv使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: exchanegArray

 /**
  * store array for each property
  * @param array $_data
  */
 public function exchanegArray($_data)
 {
     $this->tpl_route_no = (int) gv('tpl_route_no', $_data);
     $this->branch_no = (int) gv('branch_no', $_data);
     $this->tpl_title = (string) gv('tpl_title', $_data);
     $this->update_time = (string) gv('update_time', $_data);
 }
开发者ID:jonathan1212,项目名称:zf2,代码行数:11,代码来源:TplRouteTable.php

示例2: updateRecord

 /**
  * update
  * @param int $_user_no
  * @param array $_data
  * @param boolean $_chg_user
  * @return boolean
  */
 public function updateRecord($_user_no, $_data, $_chg_user)
 {
     $adapter = GlobalAdapterFeature::getStaticAdapter();
     $connection = $adapter->getDriver()->getConnection();
     $connection->beginTransaction();
     $this->db->exchanegArray($_data);
     try {
         $row = $this->db->updateRecord($_user_no);
         if ($row && $_chg_user) {
             $tpl_route_no = gv('tpl_route_no', $_data);
             $r = new TplRouteUserTable($adapter);
             $r->deleteRouteUser($tpl_route_no);
             $row = $r->insertRecord($tpl_route_no, gv('user_no', $_data));
         }
         if ($row) {
             $connection->commit();
             return true;
         }
     } catch (\Exception $e) {
         $connection->rollback();
         if (IS_TEST) {
             echo $e->getMessage();
         }
         return false;
     }
 }
开发者ID:jonathan1212,项目名称:zf2,代码行数:33,代码来源:TplRouteEntity.php

示例3: exchanegArray

 /**
  * store array for each property
  * @param array $_data
  */
 public function exchanegArray($_data)
 {
     $this->controller_no = (int) gv('controller_no', $_data);
     $this->controller_name = (string) gv('controller_name', $_data);
     $this->ctrl_description = (string) gv('ctrl_description', $_data);
     $this->update_time = (string) gv('update_time', $_data);
 }
开发者ID:jonathan1212,项目名称:zf2,代码行数:11,代码来源:ControllerTable.php

示例4: exchanegArray

 /**
  * store array for each property
  * @param array $_data
  */
 public function exchanegArray($_data)
 {
     $this->sequence_no = (int) gv('sequence_no', $_data);
     $this->status = (int) gv('status', $_data);
     $this->branch_no = (int) gv('branch_no', $_data);
     $this->created = (int) gv('created', $_data);
 }
开发者ID:jonathan1212,项目名称:zf2,代码行数:11,代码来源:RequestNumberTable.php

示例5: exchanegArray

 /**
  * store array for each property
  * @param array $_data
  */
 public function exchanegArray($_data)
 {
     $this->role_no = (int) gv('role_no', $_data);
     $this->branch_no = (int) gv('branch_no', $_data);
     $this->role_name = (string) gv('role_name', $_data);
     $this->update_time = (string) gv('update_time', $_data);
 }
开发者ID:jonathan1212,项目名称:zf2,代码行数:11,代码来源:RoleTable.php

示例6: exchanegArray

 /**
  * store array for each property
  * @param array $_data
  */
 public function exchanegArray($_data)
 {
     $this->section_no = (int) gv('section_no', $_data);
     $this->branch_no = (int) gv('branch_no', $_data);
     $this->section_name = (string) gv('section_name', $_data);
     $this->abbr_name = (string) gv('abbr_name', $_data, null);
     $this->update_time = (string) gv('update_time', $_data);
 }
开发者ID:jonathan1212,项目名称:zf2,代码行数:12,代码来源:SectionTable.php

示例7: exchanegArray

 /**
  * store array for each property
  * @param array $_data
  */
 public function exchanegArray($_data)
 {
     $this->category_no = (int) gv('category_no', $_data);
     $this->category_name = (string) gv('category_name', $_data);
     $this->cate_description = (string) gv('cate_description', $_data);
     $this->order_no = (int) gv('order_no', $_data);
     $this->update_time = (string) gv('update_time', $_data);
 }
开发者ID:jonathan1212,项目名称:zf2,代码行数:12,代码来源:PageCategoryTable.php

示例8: exchanegArray

 /**
  * store array for each property
  * @param array $_data
  */
 public function exchanegArray($_data)
 {
     $this->tpl_doc_no = (int) gv('tpl_doc_no', $_data);
     $this->branch_no = (int) gv('branch_no', $_data);
     $this->tpl_title = (string) gv('tpl_title', $_data);
     $this->tpl_body = \stripslashes(\str_replace(" ", '', (string) gv('tpl_body', $_data)));
     $this->update_time = (string) gv('update_time', $_data);
 }
开发者ID:jonathan1212,项目名称:zf2,代码行数:12,代码来源:TplDocumentTable.php

示例9: exchanegArray

 /**
  * store array for each property
  * @param array $_data
  */
 public function exchanegArray($_data)
 {
     $this->lang_no = (int) gv('lang_no', $_data);
     $this->lang_name = (string) gv('lang_name', $_data);
     $this->language = (string) gv('language', $_data);
     $this->lang_id = (string) gv('lang_id', $_data);
     $this->resource_id = (string) gv('resource_id', $_data);
     $this->update_time = (string) gv('update_time', $_data);
 }
开发者ID:jonathan1212,项目名称:zf2,代码行数:13,代码来源:LanguageTable.php

示例10: exchanegArray

 /**
  * store array for each property
  * @param array $_data
  */
 public function exchanegArray($_data)
 {
     $this->status_no = (int) gv('status_no', $_data);
     $this->status_name = (string) gv('status_name', $_data);
     $this->stat_description = (string) gv('stat_description', $_data);
     $this->locked = (int) gv('locked', $_data);
     $this->order_no = (int) gv('order_no', $_data);
     $this->update_time = (string) gv('update_time', $_data);
 }
开发者ID:jonathan1212,项目名称:zf2,代码行数:13,代码来源:StatusTable.php

示例11: exchanegArray

 /**
  * store array for each property
  * @param array $_data
  */
 public function exchanegArray($_data)
 {
     $this->branch_no = (int) gv('branch_no', $_data);
     $this->branch_name = (string) gv('branch_name', $_data);
     $this->abbr_name = (string) gv('abbr_name', $_data);
     $this->timezone = (string) gv('timezone', $_data);
     $this->phone = (string) gv('phone', $_data);
     $this->address = (string) gv('address', $_data);
     $this->update_time = (string) gv('update_time', $_data);
 }
开发者ID:jonathan1212,项目名称:zf2,代码行数:14,代码来源:BranchTable.php

示例12: exchanegArray

 /**
  * store array for each property
  * @param array $_data
  */
 public function exchanegArray($_data)
 {
     $this->position_no = (int) gv('position_no', $_data);
     $this->branch_no = (int) gv('branch_no', $_data);
     $this->position_name = (string) gv('position_name', $_data);
     $this->abbr_name = (string) gv('abbr_name', $_data);
     $this->approval = (int) gv('approval', $_data);
     $this->priority = (int) gv('priority', $_data);
     $this->update_time = (string) gv('update_time', $_data);
 }
开发者ID:jonathan1212,项目名称:zf2,代码行数:14,代码来源:PositionTable.php

示例13: exchanegArray

 public function exchanegArray($_data)
 {
     $this->id = (int) gv('id', $_data);
     $this->menu_item_name = (string) gv('menu_item_name', $_data);
     $this->branch_no = (string) gv('branch_no', $_data);
     $this->parent_id = (string) gv('parent_id', $_data);
     $this->menu_item_code = (string) gv('menu_item_code', $_data);
     $this->created = (string) gv('created', $_data);
     $this->modified = (string) gv('modified', $_data);
     $this->created_by = (string) gv('created_by', $_data);
     $this->approver_no = (int) gv('approver_no', $_data);
 }
开发者ID:jonathan1212,项目名称:zf2,代码行数:12,代码来源:RequestCategoryTable.php

示例14: exchanegArray

 /**
  * store array for each property
  * @param array $_data
  */
 public function exchanegArray($_data)
 {
     $this->page_no = (int) gv('page_no', $_data);
     $this->category_no = (int) gv('category_no', $_data);
     $this->controller_no = (int) gv('controller_no', $_data);
     $this->page_title = (string) gv('page_title', $_data);
     $this->page_uri = (string) gv('page_uri', $_data);
     $this->page_description = (string) gv('page_description', $_data);
     $this->icon = (string) gv('icon', $_data);
     $this->order_no = (int) gv('order_no', $_data);
     $this->use_mobile = (int) gv('use_mobile', $_data);
     $this->update_time = (string) gv('update_time', $_data);
 }
开发者ID:jonathan1212,项目名称:zf2,代码行数:17,代码来源:PageTable.php

示例15: forbiddenAction

 /**
  * for 403 error
  */
 public function forbiddenAction()
 {
     $fm = $this->flashMessenger();
     $message = gv('0', $fm->getMessages());
     if ($message) {
         $values = array('message' => gv('0', $fm->getMessages()));
     } else {
         $values = array();
     }
     $this->layout('error/layout');
     $view = new ViewModel($values);
     $view->setTemplate('/error/403.phtml');
     return $view;
 }
开发者ID:jonathan1212,项目名称:zf2,代码行数:17,代码来源:FailedController.php


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