当前位置: 首页>>代码示例>>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;未经允许,请勿转载。