• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP isEmptyString函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: __construct

 public function __construct($config = array())
 {
     parent::__construct($config = array());
     // add the path to the scripts
     $this->setScriptPath(APPLICATION_PATH . "/views/scripts/email/");
     $this->appname = getAppName();
     $config = Zend_Registry::get("config");
     // default sign off name and email
     $mail = Zend_Registry::get('mail');
     $default_sender = $mail->getDefaultFrom();
     //$this->signoffname = $default_sender['name'];
     //$this->signoffemail = $default_sender['email'];
     $this->signoffname = getDefaultAdminName();
     $this->signoffemail = getDefaultAdminEmail();
     $this->contactusurl = $this->serverUrl($this->baseUrl('contactus'));
     $this->logourl = $this->serverUrl($this->baseUrl('images/logo.jpg'));
     $this->loginurl = $this->serverUrl($this->baseUrl('user/login'));
     $this->baseurl = $this->serverUrl($this->baseUrl());
     $this->settingsurl = $this->serverUrl($this->baseUrl('profile/view/tab/account'));
     $allcolors = getAllThemeColors();
     //debugMessage($allcolors);
     $colortxt = getThemeColor();
     $themecolor = "blue";
     if (!isEmptyString($colortxt)) {
         $themecolor = $colortxt;
     }
     $this->themecolor = $allcolors[$themecolor];
     // debugMessage('color is '.$allcolors[$themecolor]);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:29,代码来源:EmailTemplate.php


示例2: excelAction

 function excelAction()
 {
     $this->_helper->layout->disableLayout();
     $this->_helper->viewRenderer->setNoRender(TRUE);
     $session = SessionWrapper::getInstance();
     $formvalues = $this->_getAllParams();
     // debugMessage($formvalues);
     $title = $this->_getParam('reporttitle');
     // debugMessage($formvalues);
     $cvsdata = decode($formvalues['csv_text']);
     if (!isEmptyString($title)) {
         $cvsdata = str_replace('"--"', '""', $cvsdata);
         $title = str_replace(', ', ' ', $title);
         $cvsdata = $title . "\r\n" . $cvsdata;
     }
     // debugMessage($cvsdata); exit();
     $currenttime = time();
     $filename = $currenttime . '.csv';
     /*$full_path = BASE_PATH.DIRECTORY_SEPARATOR."temp".DIRECTORY_SEPARATOR.$filename;
     		file_put_contents($full_path, $cvsdata);*/
     $data = stripcslashes($cvsdata);
     // debugMessage($data);
     // exit();
     //OUPUT HEADERS
     header("Pragma: public");
     header("Expires: 0");
     header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
     header("Cache-Control: private", false);
     header("Content-Type: application/octet-stream");
     header("Content-Disposition: attachment; filename=\"{$filename}\";");
     header("Content-Transfer-Encoding: binary");
     //OUTPUT CSV CONTENT
     echo $data;
     exit;
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:35,代码来源:DownloadController.php


示例3: getActionforACL

 /**
  * Get the name of the action being accessed 
  *
  * @return String 
  */
 function getActionforACL()
 {
     $action = strtolower($this->getRequest()->getActionName());
     if ($action == ACTION_INDEX && isEmptyString($this->_getParam('id'))) {
         return ACTION_CREATE;
     }
     if ($action == ACTION_INDEX && !isEmptyString($this->_getParam('id'))) {
         return ACTION_EDIT;
     }
     if ($action == "new") {
         return ACTION_CREATE;
     }
     if ($action == "returntolist") {
         return ACTION_LIST;
     }
     if ($action == "overview") {
         return ACTION_LIST;
     }
     if ($action == "selectchain") {
         return ACTION_LIST;
     }
     if ($action == "listsearch") {
         return ACTION_LIST;
     }
     if ($action == "reject") {
         return ACTION_APPROVE;
     }
     if ($action == "export") {
         return ACTION_EXPORT;
     }
     return $action;
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:37,代码来源:SecureController.php


示例4: getAllParentResources

 /**
  * Return an array containing the ids and names of all parent resources for this resource
  *
  * @return Array an array of all parent resources, the key is the id of the resource while the value is the name of the resource
  */
 function getAllParentResources()
 {
     $parentquery = "SELECT r.name AS optiontext, r.id AS optionvalue FROM aclresource AS r ORDER BY optiontext";
     if (!isEmptyString($this->getID())) {
         $parentquery .= " AND id <> '" . $this->getID() . "'";
     }
     return getOptionValuesFromDatabaseQuery($parentquery);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:13,代码来源:AclResource.php


示例5: getOptionValuesFromQuery

 /**
  * Return the values of the options for the lookup type
  * 
  * @return Array containing the lookup types for the values or false if an error occurs
  *
  */
 function getOptionValuesFromQuery()
 {
     # get the query to execute
     $conn = Doctrine_Manager::connection();
     $query = $conn->fetchRow("SELECT querystring FROM lookupquery WHERE name = '" . $this->getName() . "'");
     # debugMessage($query);
     if (isEmptyString($query['querystring'])) {
         return array();
     } else {
         return getOptionValuesFromDatabaseQuery($query['querystring']);
     }
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:18,代码来源:LookupType.php


示例6: existingPayroll

 function existingPayroll()
 {
     $conn = Doctrine_Manager::connection();
     # validate unique username and email
     $id_check = "";
     if (!isEmptyString($this->getID())) {
         $id_check = " AND id <> '" . $this->getID() . "' ";
     }
     $companyid = getCompanyID();
     $query = "SELECT id FROM payroll p WHERE p.companyid = '" . $companyid . "' AND TO_DAYS(p.startdate) = TO_DAYS('" . $this->getStartDate() . "') AND TO_DAYS(p.enddate) = TO_DAYS('" . $this->getEndDate() . "') AND p.type = '" . $this->getType() . "' " . $id_check;
     // debugMessage($query);
     $result = $conn->fetchOne($query);
     return $result;
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:14,代码来源:Payroll.php


示例7: connect

 public function connect()
 {
     try {
         if (isEmptyString($this->config['username']) || isEmptyString($this->config['password'])) {
             $this->connection = new MongoClient(sprintf('mongodb://%s:%d', $this->config['host'], $this->config['port']));
         } else {
             $this->connection = new MongoClient(sprintf('mongodb://%s:%d', $this->config['host'], $this->config['port']), array('username' => $this->config['username'], 'password' => $this->config['password'], 'db' => $this->config['db']));
         }
     } catch (Exception $e) {
         $this->collection = null;
         $this->connection = null;
         Logger::ERROR('Connect mongodb error [' . $e->getMessage() . ']', __FILE__, __LINE__, ERROR_LOG_FILE);
     }
 }
开发者ID:hzh123,项目名称:my_yaf,代码行数:14,代码来源:HaloKVClient.php


示例8: connect

 /**
  * 连接数据库
  */
 public function connect()
 {
     try {
         if (isEmptyString($this->config['username']) || isEmptyString($this->config['password'])) {
             $this->connection = new MongoClient(sprintf('mongodb://%s:%d', $this->config['host'], $this->config['port']));
         } else {
             $this->connection = new MongoClient(sprintf('mongodb://%s:%d', $this->config['host'], $this->config['port']), array('username' => $this->config['username'], 'password' => $this->config['password'], 'db' => $this->config['db']));
         }
         $this->connection->setReadPreference(MongoClient::RP_SECONDARY_PREFERRED, array());
     } catch (Exception $e) {
         $this->collection = null;
         $this->connection = null;
         Logger::write($e->__toString(), ERR);
     }
 }
开发者ID:jixiaod,项目名称:yaf-swoole-framework,代码行数:18,代码来源:Mongo.php


示例9: __construct

 public function __construct($auserid = "")
 {
     // do not proceed if no user is defined
     if (isEmptyString($auserid)) {
         return;
     }
     $conn = Doctrine_Manager::connection();
     // initialize the array of available groups
     $this->availableGroups = array();
     // the available actions
     // get the groups from the database for the specified user
     $groups = $conn->fetchAll("SELECT groupid FROM aclusergroup WHERE userid = '" . $auserid . "'");
     // get the resources from the database
     $resources = $conn->fetchAll("SELECT id FROM aclresource");
     // get the permissions for the specified user
     // TODO: HM -  Remove the need for the c_aclpermission view
     $permissions = $conn->fetchAll("SELECT `p`.`groupid` AS `groupid`,  LOWER(`re`.`name`) AS `resource`,  `p`.`create` AS `create`, `p`.`edit` AS `edit`, `p`.`export` AS `export`,`p`.`approve` AS `approve`,  `p`.`view` AS `view`, `p`.`delete` AS `delete`, `p`.`list` AS `list`, p.flag as `flag` FROM ((`aclpermission` `p` JOIN `aclresource` `re`) LEFT JOIN `aclusergroup` `ur` ON ((`p`.`groupid` = `ur`.`groupid`))) WHERE ((`p`.`resourceid` = `re`.`id`) AND ur.userid = '" . $auserid . "')");
     // add the groups to the ACL
     foreach ($groups as $value) {
         $group = new AclGroup();
         // load the details of the user group
         $group->populate($value['groupid']);
         $this->addRole($group);
         // add the group to the array of available groups
         $this->availableGroups[] = $group;
     }
     // add the resources to the ACL, the name of the resource and its parent are what are used as identifiers for the resource in the ACL
     foreach ($resources as $value) {
         $ares = new AclResource();
         $ares->populate($value['id']);
         $this->add($ares);
     }
     // process the permissions for all the actions
     $allactions = self::getActions();
     // add the permissions to the ACL
     foreach ($permissions as $value) {
         foreach ($allactions as $theaction) {
             if ($value[$theaction] == '1') {
                 // the name of the resource is used as a key while the id of the group is used as a key
                 $this->allow($value['groupid'], $value['resource'], $theaction);
             }
         }
     }
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:44,代码来源:ACL.php


示例10: valueExists

 function valueExists($value = '')
 {
     $conn = Doctrine_Manager::connection();
     $id_check = "";
     if (!isEmptyString($this->getID())) {
         $id_check = " AND id <> '" . $this->getID() . "' ";
     }
     if (isEmptyString($value)) {
         $value = $this->getlookupvaluedescription();
     }
     # unique value
     $value_query = "SELECT id FROM lookuptypevalue WHERE lookupvaluedescription = '" . $value . "' AND lookuptypeid = '" . $this->getLookupTypeID() . "' AND alias = '" . $this->getAlias() . "' " . $id_check;
     // debugMessage($value_query);
     $value_result = $conn->fetchOne($value_query);
     // debugMessage($value_result);
     if (isEmptyString($value_result)) {
         return false;
     }
     return true;
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:20,代码来源:LookupTypeValue.php


示例11: nameExists

 function nameExists($name = '')
 {
     $conn = Doctrine_Manager::connection();
     # validate unique username and email
     $id_check = "";
     if (!isEmptyString($this->getID())) {
         $id_check = " AND id <> '" . $this->getID() . "' ";
     }
     if (isEmptyString($name)) {
         $name = $this->getName();
     }
     $query = "SELECT id FROM benefittype WHERE name = '" . $name . "' AND name <> '' " . $id_check;
     // debugMessage($query);
     $result = $conn->fetchOne($query);
     // debugMessage($result);
     if (isEmptyString($result)) {
         return false;
     }
     return true;
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:20,代码来源:BenefitType.php


示例12: getUrl

 /**
  * Return a URL based on whether there were errors while processing the relevant action.
  * 
  * The url forwarded to can be overridden by specifying the sucessurl and failure url properties
  * 
  * @return String the url to which to forward based on whether or not the action was successful.
  */
 function getUrl()
 {
     if ($this->hasError()) {
         if (isEmptyString($this->getFailureURL())) {
             return "../" . $this->getModuleName() . "/create" . $this->getEntityName() . ".php?id=" . $this->getID() . "&action=" . $this->getAction() . "&modifier=" . $this->getModifier();
         } else {
             return $this->getFailureURL();
         }
     } else {
         if (isEmptyString($this->getSuccessURL())) {
             return "../" . $this->getModuleName() . "/view" . $this->getEntityName() . ".php?id=" . $this->getID() . "&modifier=" . $this->getModifier();
         } else {
             // check if the success url contains a query string
             $separator = "&";
             if (strpos($this->getSuccessURL(), "?") === false) {
                 // do nothing
                 $separator = "?";
             }
             return $this->getSuccessURL() . $separator . "id=" . $this->getID();
         }
     }
 }
开发者ID:nwtug,项目名称:academia,代码行数:29,代码来源:Controller.php


示例13: processchangepasswordAction

 function processchangepasswordAction()
 {
     $session = SessionWrapper::getInstance();
     $this->_translate = Zend_Registry::get("translate");
     if (!isEmptyString($this->_getParam('password'))) {
         $user = new UserAccount();
         $user->populate(decode($this->_getParam('id')));
         // debugMessage($user->toArray());
         #validate that the passwords aint the same
         if ($this->_getParam('oldpassword') == $this->_getParam('password')) {
             $session->setVar(SUCCESS_MESSAGE, "New Password should be the same as the current passowrd!");
             $this->_redirect($this->view->baseUrl('profile/view/id/' . encode($user->getID()) . '/tab/account'));
         }
         # Change password
         try {
             $user->changePassword($this->_getParam('password'));
             $session->setVar(SUCCESS_MESSAGE, "Password successfully updated");
             $this->_redirect($this->view->baseUrl('index/profileupdatesuccess'));
         } catch (Exception $e) {
             $session->setVar(ERROR_MESSAGE, "Error in changing Password. " . $e->getMessage());
         }
     }
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:23,代码来源:ProfileController.php


示例14: setWorksheetTitle

 /**
  * Set the worksheet title
  * 
  * Checks the string for not allowed characters (:\/?*),
  * cuts it to maximum 31 characters and set the title. Damn
  * why are not-allowed chars nowhere to be found? Windows
  * help's no help...
  *
  * @access public
  * @param string $title Designed title
  */
 public function setWorksheetTitle($title)
 {
     if (isEmptyString($title)) {
         $title = "Sheet 1";
     }
     // strip out special chars first
     $title = preg_replace("/[\\\\|:|\\/|\\?|\\*|\\[|\\]]/", "", $title);
     // now cut it to the allowed length
     $title = substr($title, 0, 31);
     // set title
     $this->worksheet_title = $title;
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:23,代码来源:ExcelXML.php


示例15: hasError

 /**
  * Whether or not the object has an error
  *
  * @return boolean true if the object has an error, otherwise false
  */
 function hasError()
 {
     return !isEmptyString($this->getErrorStackAsString());
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:9,代码来源:BaseRecord.php


示例16: createAction

 function createAction()
 {
     $this->_helper->layout->disableLayout();
     $this->_helper->viewRenderer->setNoRender(TRUE);
     $session = SessionWrapper::getInstance();
     $this->_translate = Zend_Registry::get("translate");
     $config = Zend_Registry::get("config");
     $formvalues = $this->_getAllParams();
     // debugMessage($formvalues); exit();
     $isuserdoc = false;
     $iscompanydoc = false;
     if (!isArrayKeyAnEmptyString('userid', $formvalues)) {
         $isuserdoc = true;
         $folderid = $formvalues['userid'];
     } else {
         $iscompanydoc = true;
         $folderid = getCompanyID();
     }
     if (isset($_FILES["FileInput"]) && $_FILES["FileInput"]["error"] == UPLOAD_ERR_OK && !array_key_exists('submit', $formvalues)) {
         if (!isset($_FILES['FileInput']['name'])) {
             $error = "<span class='alert alert-danger blocked'>Error: Please select a File to Upload.</span>";
             $result = array('msg' => $error, 'result' => '');
             echo $error;
             exit;
         }
         // if uploading a user document
         if ($isuserdoc) {
             // base path for user documents
             $destination_path = BASE_PATH . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "users" . DIRECTORY_SEPARATOR . "user_";
             // determine if user has destination avatar folder. Else user is editing there picture
             if (!is_dir($destination_path . $folderid)) {
                 // no folder exits. Create the folder
                 mkdir($destination_path . $folderid, 0775);
             }
         }
         // if uploading a company document
         if ($iscompanydoc) {
             // base path for user documents
             $destination_path = BASE_PATH . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "company" . DIRECTORY_SEPARATOR . "comp_";
             // determine if user has destination avatar folder. Else user is editing there picture
             if (!is_dir($destination_path . $folderid)) {
                 // no folder exits. Create the folder
                 mkdir($destination_path . $folderid, 0775);
             }
         }
         $destination_path = $destination_path . $folderid . DIRECTORY_SEPARATOR . "documents";
         if (!is_dir($destination_path)) {
             mkdir($destination_path, 0775);
         }
         // create archive folder for each user
         $archivefolder = $destination_path . DIRECTORY_SEPARATOR . "archive";
         if (!is_dir($archivefolder)) {
             mkdir($archivefolder, 0775);
         }
         $oldfile = $_FILES['FileInput']['name'];
         $File_Name = strtolower($oldfile);
         $File_Ext = findExtension($File_Name);
         //get file extention
         $ext = strtolower($_FILES['FileInput']['type']);
         // debugMessage($ext);
         $allowedformatsarray = explode(',', str_replace(' ', '', $config->uploads->docallowedformats));
         // debugMessage($allowedformatsarray);exit();
         $uploadedext = findExtension($File_Name);
         $currenttime = time();
         //Random number to be added to name.
         $currenttime_file = $currenttime . '.' . $uploadedext;
         $thefilename = $destination_path . DIRECTORY_SEPARATOR . $currenttime_file;
         if (isEmptyString($folderid)) {
             $destination_path = BASE_PATH . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "temp";
             if (!is_dir($destination_path)) {
                 // no folder exits. Create the folder
                 mkdir($destination_path, 0775);
             }
             $thefilename = $destination_path . DIRECTORY_SEPARATOR . $currenttime_file;
         }
         // check if this is an ajax request
         if (!isset($_SERVER['HTTP_X_REQUESTED_WITH'])) {
             $error = "<span class='alert alert-danger blocked'>Error: No Request received.</span>";
             $result = array('msg' => $error, 'result' => '');
             echo $error;
             exit;
         }
         // debugMessage('size '.$_FILES["FileInput"]["size"]);
         // validate maximum allowed size
         $size = $_FILES["FileInput"]["size"];
         if ($size > $config->uploads->docmaximumfilesize) {
             $error = "<span class='alert alert-danger blocked'>Error: Maximum allowed size exceeded.</span>";
             $result = array('msg' => $error, 'result' => '');
             echo $error;
             exit;
         }
         // validate allowed formats
         if (!in_array($File_Ext, $allowedformatsarray)) {
             $error = "<span class='alert alert-danger blocked'>Error: Format '." . $File_Ext . "' not supported. Formats allowed include '" . $config->uploads->docallowedformats . "'</span>";
             $result = array('msg' => $error, 'result' => '');
             echo $error;
             exit;
         }
         # move the file
         try {
//.........这里部分代码省略.........
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:101,代码来源:DocumentController.php


示例17: session_start

		}	
		return false;
	}

</script>

<body>

<?php 
session_start();
require "class_lib_test.php";
// get op from session var
$op = $_SESSION['username'];
printToolbar($op, false);
echo "</br>";
if (!isEmptyString($op)) {
    ?>

	<!--<form id="postMessage" action="postMessageHandler.php" enctype="multipart/form-data" method="POST">-->
	<form id = "postMessage" name="postMessage" method="POST" onsubmit="process(); return false;">
		Enter a message (<?php 
    echo $MAX_MESSAGE_LENGTH;
    ?>
 character limit):</br></br>

		<textarea onKeyPress="return taLimit(this)" onKeyUp="return taCount(this, 'counter')" id="message" name="message" value="msgVal" cols="60" rows="7"></textarea></br>

		<input type = "hidden" name = "toUser" value = "<?php 
    echo $_GET['toUser'];
    ?>
">
开发者ID:brianjchow,项目名称:CS105,代码行数:31,代码来源:postMessage+(Brian-PC's+conflicted+copy+2013-11-06).php


示例18: processPost

 /**
  * Clean out the data received from the screen by:
  * - remove empty/blank groupid  - the groupid is not required and therefore is an empty value is maintained will cause an out of range exception 
  *
  * @param Array $post_array
  */
 function processPost($post_array)
 {
     $session = SessionWrapper::getInstance();
     // check if the groupid is blank then remove it
     $permissions = $this->getPermissions();
     $permissions_array = $permissions->toArray();
     if (array_key_exists('permissions', $post_array)) {
         if (is_array($post_array['permissions'])) {
             $data = array();
             foreach ($post_array['permissions'] as $key => $value) {
                 $data[$key] = $value;
                 if (array_key_exists('groupid', $value)) {
                     if (isEmptyString($value['groupid'])) {
                         unset($post_array['permissions'][$key]['groupid']);
                     }
                 }
                 if (isArrayKeyAnEmptyString('create', $value)) {
                     $post_array['permissions'][$key]['create'] = 0;
                 } else {
                     $post_array['permissions'][$key]['create'] = trim(intval($value['create']));
                 }
                 if (isArrayKeyAnEmptyString('edit', $value)) {
                     $post_array['permissions'][$key]['edit'] = 0;
                 } else {
                     $post_array['permissions'][$key]['edit'] = trim(intval($value['edit']));
                 }
                 if (isArrayKeyAnEmptyString('view', $value)) {
                     $post_array['permissions'][$key]['view'] = 0;
                 } else {
                     $post_array['permissions'][$key]['view'] = trim(intval($value['view']));
                 }
                 if (isArrayKeyAnEmptyString('list', $value)) {
                     $post_array['permissions'][$key]['list'] = 0;
                 } else {
                     $post_array['permissions'][$key]['list'] = trim(intval($value['list']));
                 }
                 if (isArrayKeyAnEmptyString('delete', $value)) {
                     $post_array['permissions'][$key]['delete'] = 0;
                 } else {
                     $post_array['permissions'][$key]['delete'] = trim(intval($value['delete']));
                 }
                 if (isArrayKeyAnEmptyString('approve', $value)) {
                     $post_array['permissions'][$key]['approve'] = 0;
                 } else {
                     $post_array['permissions'][$key]['approve'] = trim(intval($value['approve']));
                 }
                 if (isArrayKeyAnEmptyString('export', $value)) {
                     $post_array['permissions'][$key]['export'] = 0;
                 } else {
                     $post_array['permissions'][$key]['export'] = trim(intval($value['export']));
                 }
                 if (isArrayKeyAnEmptyString('id', $value)) {
                     unset($post_array['permissions'][$key]['id']);
                     $post_array['permissions'][$key]['createdby'] = $session->getVar('userid');
                     $post_array['permissions'][$key]['datecreated'] = getCurrentMysqlTimestamp();
                 }
                 if (!isArrayKeyAnEmptyString('id', $value)) {
                     $post_array['permissions'][$key]['lastupdatedby'] = $session->getVar('userid');
                     $post_array['permissions'][$key]['lastupdatedate'] = getCurrentMysqlTimestamp();
                     $data = $post_array['permissions'][$key];
                     unset($post_array['permissions'][$key]);
                     $newkey = array_search_key_by_id($permissions_array, $value['id']);
                     // debugMessage($data);
                     $post_array['permissions'][$newkey] = $data;
                 }
             }
             // end loop through permissions to unset empty groupids
         }
     }
     // now process the data
     // debugMessage($post_array['permissions']); // exit();
     parent::processPost($post_array);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:79,代码来源:AclGroup.php


示例19: isRenderable

 function isRenderable($username)
 {
     return !isEmptyString($this->findByUsername($username)) ? true : false;
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:4,代码来源:Company.php


示例20: getCurrencyName

 function getCurrencyName()
 {
     $str = 'UGX';
     if (!isEmptyString($this->getRateCurrency()) && $this->getRateCurrency() != 'UGX') {
         $str = $this->getRateCurrency();
     }
     return $str;
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:8,代码来源:UserAccount.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP isEnableSection508函数代码示例发布时间:2022-05-15
下一篇:
PHP isEmpty函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap