當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ArrayUtil::toIntegerArray方法代碼示例

本文整理匯總了PHP中ArrayUtil::toIntegerArray方法的典型用法代碼示例。如果您正苦於以下問題:PHP ArrayUtil::toIntegerArray方法的具體用法?PHP ArrayUtil::toIntegerArray怎麽用?PHP ArrayUtil::toIntegerArray使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ArrayUtil的用法示例。


在下文中一共展示了ArrayUtil::toIntegerArray方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: readParameters

 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_POST['applicationIDs'])) {
         $this->applicationIDs = ArrayUtil::toIntegerArray($_POST['applicationIDs']);
     }
 }
開發者ID:joaocustodio,項目名稱:EmuDevstore-1,代碼行數:10,代碼來源:UserGroupApplicationDeleteAction.class.php

示例2: readFormParameters

 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['username'])) {
         $this->username = StringUtil::trim($_POST['username']);
     }
     if (isset($_POST['email'])) {
         $this->email = StringUtil::trim($_POST['email']);
     }
     if (isset($_POST['confirmEmail'])) {
         $this->confirmEmail = StringUtil::trim($_POST['confirmEmail']);
     }
     if (isset($_POST['password'])) {
         $this->password = $_POST['password'];
     }
     if (isset($_POST['confirmPassword'])) {
         $this->confirmPassword = $_POST['confirmPassword'];
     }
     if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) {
         $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']);
     }
     if (isset($_POST['visibleLanguages']) && is_array($_POST['visibleLanguages'])) {
         $this->visibleLanguages = ArrayUtil::toIntegerArray($_POST['visibleLanguages']);
     }
     if (isset($_POST['languageID'])) {
         $this->languageID = intval($_POST['languageID']);
     }
 }
開發者ID:CaribeSoy,項目名稱:contest-wcf,代碼行數:31,代碼來源:UserAddForm.class.php

示例3: readParameters

 /**
  * @see Page::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['boardID'])) {
         $this->boardIDArray = ArrayUtil::toIntegerArray(explode(',', $_REQUEST['boardID']));
     }
 }
開發者ID:joaocustodio,項目名稱:EmuDevstore-1,代碼行數:10,代碼來源:ThreadsFeedPage.class.php

示例4: readFormParameters

 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['unignoredBoardIDArray']) && is_array($_POST['unignoredBoardIDArray'])) {
         $this->unignoredBoardIDArray = ArrayUtil::toIntegerArray($_POST['unignoredBoardIDArray']);
     }
 }
開發者ID:joaocustodio,項目名稱:EmuDevstore-1,代碼行數:10,代碼來源:BoardIgnoreForm.class.php

示例5: readParameters

 /**
  * @see Page::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['userID'])) {
         $this->userID = ArrayUtil::toIntegerArray($_REQUEST['userID']);
     }
 }
開發者ID:CaribeSoy,項目名稱:contest-wcf,代碼行數:10,代碼來源:UserActionPage.class.php

示例6: readFormParameters

 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     $this->ignoreUniques = $this->plugin = $this->standalone = 0;
     if (isset($_POST['packageUpdateServerIDs']) && is_array($_POST['packageUpdateServerIDs'])) {
         $this->packageUpdateServerIDs = ArrayUtil::toIntegerArray($_POST['packageUpdateServerIDs']);
     }
     if (isset($_POST['packageName'])) {
         $this->packageName = StringUtil::trim($_POST['packageName']);
     }
     if (isset($_POST['author'])) {
         $this->author = StringUtil::trim($_POST['author']);
     }
     if (isset($_POST['searchDescription'])) {
         $this->searchDescription = intval($_POST['searchDescription']);
     }
     if (isset($_POST['plugin'])) {
         $this->plugin = intval($_POST['plugin']);
     }
     if (isset($_POST['standalone'])) {
         $this->standalone = intval($_POST['standalone']);
     }
     if (isset($_POST['other'])) {
         $this->other = intval($_POST['other']);
     }
     if (isset($_POST['ignoreUniques'])) {
         $this->ignoreUniques = intval($_POST['ignoreUniques']);
     }
 }
開發者ID:CaribeSoy,項目名稱:contest-wcf,代碼行數:32,代碼來源:PackageUpdateSearchForm.class.php

示例7: readParameters

 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_POST['sourceListPositions']) && is_array($_POST['sourceListPositions'])) {
         $this->positions = ArrayUtil::toIntegerArray($_POST['sourceListPositions']);
     }
 }
開發者ID:ZerGabriel,項目名稱:PackageBuilder,代碼行數:10,代碼來源:SourceSortAction.class.php

示例8: readFormParameters

 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['subject'])) {
         $this->subject = $_POST['subject'];
     }
     if (isset($_POST['text'])) {
         $this->text = $_POST['text'];
     }
     if (isset($_POST['enableSmilies'])) {
         $this->enableSmilies = $_POST['enableSmilies'];
     }
     if (isset($_POST['enableHtml'])) {
         $this->enableHtml = $_POST['enableHtml'];
     }
     if (isset($_POST['enableBBCodes'])) {
         $this->enableBBCodes = $_POST['enableBBCodes'];
     }
     if (isset($_POST['showSignature'])) {
         $this->showSignature = $_POST['showSignature'];
     }
     if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) {
         $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']);
     }
     if (isset($_POST['preview'])) {
         $this->preview = (bool) $_POST['preview'];
     }
     if (isset($_POST['send'])) {
         $this->send = (bool) $_POST['send'];
     }
     if (isset($_POST['maxLifeTime'])) {
         $this->maxLifeTime = intval($_POST['maxLifeTime']);
     }
 }
開發者ID:Maggan22,項目名稱:wbb3addons,代碼行數:37,代碼來源:PMToUserGroupsForm.class.php

示例9: readFormParameters

 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     $this->allTemplates = $this->useRegex = $this->caseSensitive = $this->replace = $this->invertSearch = $this->invertTemplates = 0;
     if (isset($_POST['allTemplates'])) {
         $this->allTemplates = intval($_POST['allTemplates']);
     }
     if (isset($_POST['templateID']) && is_array($_POST['templateID'])) {
         $this->templateID = ArrayUtil::toIntegerArray($_POST['templateID']);
     }
     if (isset($_POST['useRegex'])) {
         $this->useRegex = intval($_POST['useRegex']);
     }
     if (isset($_POST['caseSensitive'])) {
         $this->caseSensitive = intval($_POST['caseSensitive']);
     }
     if (isset($_POST['replace'])) {
         $this->replace = intval($_POST['replace']);
     }
     if (isset($_POST['invertSearch'])) {
         $this->invertSearch = intval($_POST['invertSearch']);
     }
     if (isset($_POST['invertTemplates'])) {
         $this->invertTemplates = intval($_POST['invertTemplates']);
     }
     if (isset($_POST['replaceBy'])) {
         $this->replaceBy = $_POST['replaceBy'];
     }
     if (isset($_POST['query'])) {
         $this->query = $_POST['query'];
     }
 }
開發者ID:joaocustodio,項目名稱:EmuDevstore-1,代碼行數:35,代碼來源:TemplateSearchForm.class.php

示例10: readFormParameters

 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     $this->doSave = isset($_POST[get_class($this)]);
     // insert new
     if (isset($_POST['optionIDs']) && is_array($_POST['optionIDs'])) {
         $this->optionIDs = ArrayUtil::toIntegerArray($_POST['optionIDs']);
     }
 }
開發者ID:CaribeSoy,項目名稱:contest-wcf,代碼行數:12,代碼來源:ContestSolutionRatingUpdateForm.class.php

示例11: getData

 /**
  * @see OptionType::getData()
  */
 public function getData($optionData, $newValue)
 {
     if (!is_array($newValue)) {
         $newValue = array();
     }
     $newValue = ArrayUtil::toIntegerArray($newValue);
     sort($newValue, SORT_NUMERIC);
     return implode(',', $newValue);
 }
開發者ID:CaribeSoy,項目名稱:contest-wcf,代碼行數:12,代碼來源:GroupOptionTypeGroups.class.php

示例12: readFormParameters

 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['userIDs'])) {
         $this->userIDs = implode(',', ArrayUtil::toIntegerArray(explode(',', $_POST['userIDs'])));
     }
     if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) {
         $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']);
     }
 }
開發者ID:CaribeSoy,項目名稱:contest-wcf,代碼行數:13,代碼來源:UserAssignToGroupForm.class.php

示例13: readParameters

 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['groupID'])) {
         $this->groupID = intval($_REQUEST['groupID']);
     }
     if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) {
         $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']);
     }
 }
開發者ID:CaribeSoy,項目名稱:contest-wcf,代碼行數:13,代碼來源:GroupDeleteAction.class.php

示例14: readFormParameters

 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['userIDs'])) {
         $this->userIDs = ArrayUtil::toIntegerArray(explode(',', $_POST['userIDs']));
     }
     if (isset($_POST['userID'])) {
         $this->userID = intval($_POST['userID']);
     }
 }
開發者ID:joaocustodio,項目名稱:EmuDevstore-1,代碼行數:13,代碼來源:UserMergeForm.class.php

示例15: readParameters

 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['templateID']) && is_array($_REQUEST['templateID'])) {
         $this->templateID = ArrayUtil::toIntegerArray($_REQUEST['templateID']);
     }
     if (isset($_REQUEST['templatePackID'])) {
         $this->templatePackID = intval($_REQUEST['templatePackID']);
     }
 }
開發者ID:joaocustodio,項目名稱:EmuDevstore-1,代碼行數:13,代碼來源:TemplateDeleteAction.class.php


注:本文中的ArrayUtil::toIntegerArray方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。