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


PHP isArrayKeyAnEmptyString函数代码示例

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


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

示例1: processPost

 function processPost($formvalues)
 {
     // trim spaces from the name field
     if (isArrayKeyAnEmptyString('companyid', $formvalues)) {
         $formvalues['companyid'] = getCompanyID();
     }
     if (isArrayKeyAnEmptyString('defaultquantity', $formvalues)) {
         unset($formvalues['defaultquantity']);
     }
     if (isArrayKeyAnEmptyString('quantitytype', $formvalues)) {
         unset($formvalues['quantitytype']);
     }
     if (isArrayKeyAnEmptyString('deductfromallowance', $formvalues)) {
         unset($formvalues['deductfromallowance']);
     }
     if (isArrayKeyAnEmptyString('paid', $formvalues)) {
         unset($formvalues['paid']);
     }
     if (isArrayKeyAnEmptyString('bookable', $formvalues)) {
         unset($formvalues['bookable']);
     }
     if (isArrayKeyAnEmptyString('authorised', $formvalues)) {
         unset($formvalues['authorised']);
     }
     if (isArrayKeyAnEmptyString('viewoncalendar', $formvalues)) {
         unset($formvalues['viewoncalendar']);
     }
     // debugMessage($formvalues); exit();
     parent::processPost($formvalues);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:30,代码来源:LeaveType.php

示例2: processPost

 function processPost($formvalues)
 {
     // trim spaces from the name field
     if (isArrayKeyAnEmptyString('companyid', $formvalues)) {
         $formvalues['companyid'] = getCompanyID();
     }
     if (isArrayKeyAnEmptyString('hours', $formvalues)) {
         unset($formvalues['hours']);
     }
     if (isArrayKeyAnEmptyString('starttime', $formvalues)) {
         unset($formvalues['starttime']);
     } else {
         $formvalues['starttime'] = date("H:i:s", strtotime($formvalues['starttime']));
     }
     if (isArrayKeyAnEmptyString('endtime', $formvalues)) {
         unset($formvalues['endtime']);
     } else {
         $formvalues['endtime'] = date("H:i:s", strtotime($formvalues['endtime']));
     }
     if (isArrayKeyAnEmptyString('overduestarttime', $formvalues)) {
         unset($formvalues['overduestarttime']);
     } else {
         $formvalues['overduestarttime'] = date("H:i:s", strtotime($formvalues['overduestarttime']));
     }
     if (isArrayKeyAnEmptyString('breakhrs', $formvalues)) {
         unset($formvalues['breakhrs']);
     }
     // debugMessage($formvalues); exit();
     parent::processPost($formvalues);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:30,代码来源:Shift.php

示例3: processPost

 function processPost($formvalues)
 {
     $session = SessionWrapper::getInstance();
     // trim spaces from the name field
     if (isArrayKeyAnEmptyString('parentid', $formvalues)) {
         unset($formvalues['parentid']);
     }
     if (isArrayKeyAnEmptyString('sectorid', $formvalues)) {
         unset($formvalues['sectorid']);
         if (!isEmptyString($formvalues['parentid'])) {
             $category = new Category();
             $category->populate($formvalues['parentid']);
             $formvalues['sectorid'] = $category->getSectorID();
         }
     }
     if (isArrayKeyAnEmptyString('level', $formvalues)) {
         unset($formvalues['level']);
     }
     if (isArrayKeyAnEmptyString('type', $formvalues)) {
         unset($formvalues['type']);
     }
     if (isArrayKeyAnEmptyString('status', $formvalues)) {
         unset($formvalues['status']);
     }
     if (isArrayKeyAnEmptyString('uneditable', $formvalues)) {
         unset($formvalues['uneditable']);
     }
     if (isArrayKeyAnEmptyString('sortorder', $formvalues)) {
         if (!isEmptyString($formvalues['parentid']) && !isEmptyString($formvalues['sectorid'])) {
             $formvalues['sortorder'] = $this->getNextSortOrder($formvalues['sectorid'], $formvalues['parentid']);
         }
     }
     // debugMessage($formvalues); exit();
     parent::processPost($formvalues);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:35,代码来源:Category.php

示例4: updatestatusAction

 function updatestatusAction()
 {
     $this->_helper->layout->disableLayout();
     $this->_helper->viewRenderer->setNoRender(TRUE);
     $formvalues = $this->_getAllParams();
     debugMessage($formvalues);
     $session = SessionWrapper::getInstance();
     $this->_translate = Zend_Registry::get("translate");
     $formvalues['id'] = $id = $formvalues['id'];
     $formvalues['dateapproved'] = date("Y-m-d H:i:s", strtotime('now'));
     $formvalues['approvedbyid'] = $session->getVar('userid');
     // debugMessage($formvalues);
     $leave = new Leave();
     $leave->populate($id);
     $leave->setStatus($formvalues['status']);
     $leave->setDateApproved(DEFAULT_DATETIME);
     $leave->setApprovedByID($session->getVar('userid'));
     if (!isArrayKeyAnEmptyString('reason', $formvalues)) {
         $leave->setReason("<br/>Rejected with remarks: " . $formvalues['reason']);
     }
     try {
         $leave->save();
         $leave->afterApprove($formvalues['status']);
         $session->setVar(SUCCESS_MESSAGE, $this->_translate->translate($formvalues[SUCCESS_MESSAGE]));
     } catch (Exception $e) {
         // debugMessage('error '.$e->getMessage());
         $session->setVar(ERROR_MESSAGE, $e->getMessage());
     }
     // exit();
     $this->_helper->redirector->gotoUrl(decode($formvalues[URL_SUCCESS]));
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:31,代码来源:LeaveController.php

示例5: processPost

 function processPost($formvalues)
 {
     // trim spaces from the name field
     if (isArrayKeyAnEmptyString('type', $formvalues)) {
         unset($formvalues['type']);
     }
     if (isArrayKeyAnEmptyString('benefitid', $formvalues)) {
         unset($formvalues['benefitid']);
     }
     if (isArrayKeyAnEmptyString('amount', $formvalues)) {
         unset($formvalues['amount']);
     }
     if (isArrayKeyAnEmptyString('benefitfrequency', $formvalues)) {
         unset($formvalues['benefitfrequency']);
     }
     if (isArrayKeyAnEmptyString('leavetypeid', $formvalues)) {
         unset($formvalues['leavetypeid']);
     }
     if (isArrayKeyAnEmptyString('accrualtype', $formvalues)) {
         unset($formvalues['accrualtype']);
     }
     if (isArrayKeyAnEmptyString('accrualfrequency', $formvalues)) {
         unset($formvalues['accrualfrequency']);
     }
     if (isArrayKeyAnEmptyString('accrualvalue', $formvalues)) {
         unset($formvalues['accrualvalue']);
     }
     // debugMessage($formvalues); exit();
     parent::processPost($formvalues);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:30,代码来源:UserBenefit.php

示例6: eventsAction

 function eventsAction()
 {
     $this->_helper->layout->disableLayout();
     $this->_helper->viewRenderer->setNoRender(TRUE);
     $config = Zend_Registry::get("config");
     $session = SessionWrapper::getInstance();
     $formvalues = $this->_getAllParams();
     $acl = getACLInstance();
     $user = new UserAccount();
     // $user->populate($formvalues['id']);
     $events = getLeaveRequests("", getYearStart(), getYearEnd());
     // debugMessage($events);
     $jsondata = array();
     $i = 0;
     if (count($events) > 0) {
         // $jsondata = $events;
         $leaveoptions = getHoursDaysDropdown();
         foreach ($events as $key => $value) {
             $jsondata[$key]['id'] = $value['id'];
             $unit = '';
             if (!isArrayKeyAnEmptyString($value['durationtype'], $leaveoptions)) {
                 $unit = ' on Leave';
             }
             $jsondata[$key]['title'] = $value['user'] . $unit;
             $jsondata[$key]['start'] = $value['startdate'];
             $jsondata[$key]['end'] = $value['enddate'];
             if (isTimesheetEmployee() && $value['userid'] == $session->getVar('userid') || $acl->checkPermission('Leave', ACTION_APPROVE)) {
                 // $jsondata[$key]['url'] = $this->view->serverUrl($this->view->baseUrl('leave/view/id/'.encode($value['id'])));
             }
         }
     }
     // debugMessage($jsondata);
     echo json_encode($jsondata);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:34,代码来源:CalendarController.php

示例7: processPost

 function processPost($formvalues)
 {
     $session = SessionWrapper::getInstance();
     // trim spaces from the name field
     if (isArrayKeyAnEmptyString('create', $formvalues)) {
         $formvalues['create'] = 0;
     }
     if (isArrayKeyAnEmptyString('edit', $formvalues)) {
         $formvalues['edit'] = 0;
     }
     if (isArrayKeyAnEmptyString('view', $formvalues)) {
         $formvalues['view'] = 0;
     }
     if (isArrayKeyAnEmptyString('list', $formvalues)) {
         $formvalues['list'] = 0;
     }
     if (isArrayKeyAnEmptyString('delete', $formvalues)) {
         $formvalues['delete'] = 0;
     }
     if (isArrayKeyAnEmptyString('export', $formvalues)) {
         $formvalues['export'] = 0;
     }
     if (isArrayKeyAnEmptyString('approve', $formvalues)) {
         $formvalues['approve'] = 0;
     }
     if (isArrayKeyAnEmptyString('flag', $formvalues)) {
         $formvalues['flag'] = 0;
     }
     // debugMessage($formvalues); exit();
     parent::processPost($formvalues);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:31,代码来源:AclPermission.php

示例8: processPost

 function processPost($formvalues)
 {
     # force setting of default none string column values. enum, int and date
     if (isArrayKeyAnEmptyString('isread', $formvalues)) {
         $formvalues['isread'] = '0';
     }
     parent::processPost($formvalues);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:8,代码来源:MessageRecipient.php

示例9: processPost

 /**
  * Clean up the post array before populating the values of the object:
  * - Remove the blank values for the executedby field which will cause a foreign key error
  *
  * @param Array $post_array The post array
  * 
  * @see BaseRecord::processPost
  */
 public function processPost($formvalues)
 {
     // remove the executedby field if it is empty
     if (isArrayKeyAnEmptyString('isupdate', $formvalues)) {
         unset($formvalues['isupdate']);
     }
     if (isArrayKeyAnEmptyString('userid', $formvalues)) {
         unset($formvalues['userid']);
     }
     parent::processPost($formvalues);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:19,代码来源:AuditTrail.php

示例10: processPost

 function processPost($formvalues)
 {
     // check if the active is not specified and set to default value
     if (isArrayKeyAnEmptyString('active', $formvalues)) {
         unset($formvalues['active']);
     }
     if (isArrayKeyAnEmptyString('editable', $formvalues)) {
         unset($formvalues['editable']);
     }
     # debugMessage($formvalues);
     parent::processPost($formvalues);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:12,代码来源:AppConfig.php

示例11: processPost

 function processPost($formvalues)
 {
     // trim spaces from the name field
     if (isArrayKeyAnEmptyString('companyid', $formvalues)) {
         unset($formvalues['companyid']);
     }
     if (isArrayKeyAnEmptyString('status', $formvalues)) {
         unset($formvalues['status']);
     }
     // debugMessage($formvalues); exit();
     parent::processPost($formvalues);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:12,代码来源:Payroll.php

示例12: processPost

 /**
  * Pre process model data
  */
 function processPost($formvalues)
 {
     # force setting of default none string column values. enum, int and date
     if (isArrayKeyAnEmptyString('parentid', $formvalues)) {
         unset($formvalues['parentid']);
     }
     if (isArrayKeyAnEmptyString('type', $formvalues)) {
         unset($formvalues['type']);
     }
     if (isArrayKeyAnEmptyString('refid', $formvalues)) {
         unset($formvalues['refid']);
     }
     parent::processPost($formvalues);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:17,代码来源:Message.php

示例13: processPost

 function processPost($formvalues)
 {
     // trim spaces from the name field
     if (isArrayKeyAnEmptyString('companyid', $formvalues)) {
         $formvalues['companyid'] = 1;
     }
     if (isArrayKeyAnEmptyString('defaultamount', $formvalues)) {
         unset($formvalues['defaultamount']);
     }
     if (isArrayKeyAnEmptyString('amounttype', $formvalues)) {
         unset($formvalues['amounttype']);
     }
     // debugMessage($formvalues); exit();
     parent::processPost($formvalues);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:15,代码来源:BenefitType.php

示例14: processPost

 function processPost($formvalues)
 {
     // trim spaces from the name field
     if (isArrayKeyAnEmptyString('headid', $formvalues)) {
         if (isArrayKeyAnEmptyString('headid_old', $formvalues)) {
             unset($formvalues['headid']);
         } else {
             $formvalues['headid'] = NULL;
         }
     }
     if (isArrayKeyAnEmptyString('companyid', $formvalues)) {
         $formvalues['companyid'] = DEFAULT_COMPANYID;
     }
     // debugMessage($formvalues); exit();
     parent::processPost($formvalues);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:16,代码来源:Department.php

示例15: processPost

 /**
  * Preprocess model data
  */
 function processPost($formvalues)
 {
     // set default values for integers, dates, decimals
     if (isArrayKeyAnEmptyString('userid', $formvalues)) {
         unset($formvalues['userid']);
     }
     if (isArrayKeyAnEmptyString('personid', $formvalues)) {
         unset($formvalues['personid']);
     }
     if (isArrayKeyAnEmptyString('namesection', $formvalues)) {
         unset($formvalues['namesection']);
     }
     if (isArrayKeyAnEmptyString('familysection', $formvalues)) {
         unset($formvalues['familysection']);
     }
     if (isArrayKeyAnEmptyString('clansection', $formvalues)) {
         unset($formvalues['clansection']);
     }
     if (isArrayKeyAnEmptyString('personalsection', $formvalues)) {
         unset($formvalues['personalsection']);
     }
     if (isArrayKeyAnEmptyString('emailaddresssection', $formvalues)) {
         unset($formvalues['emailaddresssection']);
     }
     if (isArrayKeyAnEmptyString('phonesection', $formvalues)) {
         unset($formvalues['phonesection']);
     }
     if (isArrayKeyAnEmptyString('physicaladdresssection', $formvalues)) {
         unset($formvalues['physicaladdresssection']);
     }
     if (isArrayKeyAnEmptyString('webaddresssection', $formvalues)) {
         unset($formvalues['webaddresssection']);
     }
     if (isArrayKeyAnEmptyString('birthsection', $formvalues)) {
         unset($formvalues['birthsection']);
     }
     if (isArrayKeyAnEmptyString('birthrule', $formvalues)) {
         unset($formvalues['birthrule']);
     }
     if (isArrayKeyAnEmptyString('defaultprivacy', $formvalues)) {
         unset($formvalues['defaultprivacy']);
     }
     parent::processPost($formvalues);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:47,代码来源:Privacy.php


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