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


PHP XoopsFormSelect::__construct方法代码示例

本文整理汇总了PHP中XoopsFormSelect::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP XoopsFormSelect::__construct方法的具体用法?PHP XoopsFormSelect::__construct怎么用?PHP XoopsFormSelect::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XoopsFormSelect的用法示例。


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

示例1: __construct

 /**
  * Constructor
  *
  * @param string $caption
  * @param string $name
  * @param mixed  $value   Pre-selected value (or array of them).
  *                        Legal values are {@link XOOPS_MATCH_START}, {@link XOOPS_MATCH_END},
  *                        {@link XOOPS_MATCH_EQUAL}, and {@link XOOPS_MATCH_CONTAIN}
  * @param int    $size    Number of rows. "1" makes a drop-down-list
  */
 public function __construct($caption, $name, $value = null, $size = 1)
 {
     parent::__construct($caption, $name, $value, $size, false);
     $this->addOption(XOOPS_MATCH_START, _STARTSWITH);
     $this->addOption(XOOPS_MATCH_END, _ENDSWITH);
     $this->addOption(XOOPS_MATCH_EQUAL, _MATCHES);
     $this->addOption(XOOPS_MATCH_CONTAIN, _CONTAINS);
 }
开发者ID:geekwright,项目名称:XoopsCore25,代码行数:18,代码来源:formselectmatchoption.php

示例2: __construct

 /**
  * Constructor
  *
  * @param string $caption
  * @param string $name
  * @param mixed  $value             Pre-selected value (or array of them).
  * @param int    $size              Number or rows. "1" makes a drop-down-list
  * @param bool   $theme_set_allowed Flag to use only selectable theme
  */
 public function __construct($caption, $name, $value = null, $size = 1, $theme_set_allowed = false)
 {
     parent::__construct($caption, $name, $value, $size);
     if ($theme_set_allowed === false) {
         $this->addOptionArray(XoopsLists::getThemesList());
     } else {
         $theme_arr = $GLOBALS['xoopsConfig']['theme_set_allowed'];
         foreach (array_keys($theme_arr) as $i) {
             $this->addOption($theme_arr[$i], $theme_arr[$i]);
         }
     }
 }
开发者ID:geekwright,项目名称:XoopsCore25,代码行数:21,代码来源:formselecttheme.php

示例3: __construct

 /**
  * Constructor
  *
  * @param string $caption
  * @param string $name
  * @param mixed  $value   Pre-selected value (or array of them).
  *                        Legal is any name of a XOOPS_ROOT_PATH."/language/" subdirectory.
  * @param int    $size    Number of rows. "1" makes a drop-down-list.
  */
 public function __construct($caption, $name, $value = null, $size = 1)
 {
     parent::__construct($caption, $name, $value, $size);
     $this->addOptionArray(XoopsLists::getLangList());
 }
开发者ID:geekwright,项目名称:XoopsCore25,代码行数:14,代码来源:formselectlang.php

示例4: __construct

 /**
  * Constructor
  *
  * @param string $caption Caption
  * @param string $name    "name" attribute
  * @param mixed  $value   Pre-selected value (or array of them).
  *                        Legal are all 2-letter country codes (in capitals).
  * @param int    $size    Number or rows. "1" makes a drop-down-list
  */
 public function __construct($caption, $name, $value = null, $size = 1)
 {
     parent::__construct($caption, $name, $value, $size);
     //        $this->XoopsFormSelect($caption, $name, $value, $size);
     $this->addOptionArray(XoopsLists::getCountryList());
 }
开发者ID:geekwright,项目名称:XoopsCore25,代码行数:15,代码来源:formselectcountry.php


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