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


PHP class_carrier::getAllParams方法代碼示例

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


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

示例1: updateValue

 /**
  * Queries the params-array or the source-object for the mapped value.
  * If found in the params-array, the value will be used, otherwise
  * the source-objects' getter is invoked.
  */
 protected function updateValue()
 {
     $arrParams = class_carrier::getAllParams();
     if (isset($arrParams[$this->strEntryName])) {
         $this->setStrValue($arrParams[$this->strEntryName]);
     } else {
         $this->setStrValue($this->getValueFromObject());
     }
 }
開發者ID:jinshana,項目名稱:kajonacms,代碼行數:14,代碼來源:class_formentry_base.php

示例2: validateValue

 public function validateValue()
 {
     $objDate = new class_date("0");
     $arrParams = class_carrier::getAllParams();
     if (array_key_exists($this->getStrEntryName(), $arrParams)) {
         $objDate->generateDateFromParams($this->getStrEntryName(), $arrParams);
     } else {
         $objDate = new class_date($this->getStrValue());
     }
     return $this->getObjValidator()->validate($objDate);
 }
開發者ID:jinshana,項目名稱:kajonacms,代碼行數:11,代碼來源:class_formentry_date.php

示例3: updateValue

 protected function updateValue()
 {
     $arrParams = class_carrier::getAllParams();
     $strEntryName = $this->getStrEntryName();
     $strEntryNameEmpty = $strEntryName . "_empty";
     if (isset($arrParams[$strEntryName])) {
         $this->setStrValue($arrParams[$strEntryName]);
     } elseif (isset($arrParams[$strEntryNameEmpty])) {
         $this->setStrValue("");
     } else {
         $this->setStrValue($this->getValueFromObject());
     }
 }
開發者ID:jinshana,項目名稱:kajonacms,代碼行數:13,代碼來源:class_formentry_objectlist.php

示例4: updateValue

 /**
  * Queries the params-array or the source-object for the mapped value.
  * If found in the params-array, the value will be used, otherwise
  * the source-objects' getter is invoked.
  */
 protected function updateValue()
 {
     $arrParams = class_carrier::getAllParams();
     if (isset($arrParams[$this->getStrEntryName()])) {
         $this->setStrValue(true);
     } else {
         if (count($_POST) > 0) {
             $this->setStrValue(false);
         } else {
             $this->setStrValue($this->getValueFromObject());
         }
     }
 }
開發者ID:jinshana,項目名稱:kajonacms,代碼行數:18,代碼來源:class_formentry_checkbox.php

示例5: getAllPassedParams

/**
 * Returns all params passed during startup by get, post or files
 *
 * @return array
 * @deprecated use class_carrier::getAllParams() instead
 * @see class_carrier::getAllParams()
 * @todo remove
 */
function getAllPassedParams()
{
    return class_carrier::getAllParams();
}
開發者ID:jinshana,項目名稱:kajonacms,代碼行數:12,代碼來源:functions.php

示例6: getAllParams

 /**
  * Returns the complete Params-Array
  *
  * @return mixed
  * @final
  */
 public final function getAllParams()
 {
     return class_carrier::getAllParams();
 }
開發者ID:jinshana,項目名稱:kajonacms,代碼行數:10,代碼來源:class_abstract_controller.php

示例7: checkAdditionalEditData

 /**
  * @param class_admin_formgenerator $objForm
  *
  * @return bool
  */
 protected function checkAdditionalEditData(class_admin_formgenerator $objForm)
 {
     $arrParams = class_carrier::getAllParams();
     $bitPass = true;
     if (isset($arrParams["user_pass"])) {
         $bitPass = $this->checkPasswords($this->getParam("user_pass"), $this->getParam("user_pass2"));
         if (!$bitPass) {
             $objForm->addValidationError("password", $this->getLang("required_password_equal"));
         }
     }
     $arrUsers = class_module_user_user::getAllUsersByName($this->getParam("user_username"));
     if (count($arrUsers) > 0) {
         $objUser = $arrUsers[0];
         if ($objUser->getSystemid() != $this->getSystemid()) {
             $objForm->addValidationError("user_username", $this->getLang("required_user_existing"));
             $bitPass = false;
         }
     }
     return $bitPass;
 }
開發者ID:jinshana,項目名稱:kajonacms,代碼行數:25,代碼來源:class_module_user_admin.php

示例8: formClose

 /**
  * Returns the tags to close an open form.
  * Includes the hidden fields for a passed pe param and a passed pv param by default.
  *
  * @param bool $bitIncludePeFields
  *
  * @return string
  */
 public function formClose($bitIncludePeFields = true)
 {
     $strTemplateID = $this->objTemplate->readTemplate("/elements.tpl", "form_close");
     $strPeFields = "";
     if ($bitIncludePeFields) {
         $arrParams = class_carrier::getAllParams();
         if (array_key_exists("pe", $arrParams)) {
             $strPeFields .= $this->formInputHidden("pe", $arrParams["pe"]);
         }
         if (array_key_exists("folderview", $arrParams)) {
             $strPeFields .= $this->formInputHidden("folderview", $arrParams["folderview"]);
             if (!array_key_exists("pe", $arrParams)) {
                 $strPeFields .= $this->formInputHidden("pe", "1");
             }
         }
         if (array_key_exists("pv", $arrParams)) {
             $strPeFields .= $this->formInputHidden("pv", $arrParams["pv"]);
         }
     }
     return $strPeFields . $this->objTemplate->fillTemplate(array(), $strTemplateID);
 }
開發者ID:jinshana,項目名稱:kajonacms,代碼行數:29,代碼來源:class_toolkit_admin.php

示例9: validateValue

 public function validateValue()
 {
     if ($this->getBitMandatory()) {
         $arrParams = class_carrier::getAllParams();
         if (!array_key_exists($this->getStrEntryName() . self::DAY_SUFFIX, $arrParams) || !array_key_exists($this->getStrEntryName() . self::MONTH_SUFFIX, $arrParams) || !array_key_exists($this->getStrEntryName() . self::YEAR_SUFFIX, $arrParams)) {
             return false;
         }
     }
     return parent::validateValue();
 }
開發者ID:jinshana,項目名稱:kajonacms,代碼行數:10,代碼來源:class_formentry_month_year_dropdown.php


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