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


PHP TPropertyValue::ensureEnum方法代码示例

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


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

示例1: select

 /**
  * Client script to select/clear/check a drop down list, check box list,
  * or radio button list.
  * The second parameter determines the selection method. Valid methods are
  *  - <b>Value</b>, select or check by value
  *  - <b>Values</b>, select or check by a list of values
  *  - <b>Index</b>, select or check by index (zero based index)
  *  - <b>Indices</b>, select or check by a list of index (zero based index)
  *  - <b>Clear</b>, clears or selections or checks in the list
  *  - <b>All</b>, select all
  *  - <b>Invert</b>, invert the selection.
  * @param TControl list control
  * @param string selection method
  * @param string|int the value or index to select/check.
  * @param string selection control type, either 'check' or 'select'
  */
 public function select($control, $method = 'Value', $value = null, $type = null)
 {
     $method = TPropertyValue::ensureEnum($method, 'Value', 'Index', 'Clear', 'Indices', 'Values', 'All', 'Invert');
     $type = $type === null ? $this->getSelectionControlType($control) : $type;
     $total = $this->getSelectionControlIsListType($control) ? $control->getItemCount() : 1;
     $this->callClientFunction('Prado.Element.select', array($control, $type . $method, $value, $total));
 }
开发者ID:jetbill,项目名称:hospital-universitario,代码行数:23,代码来源:TCallbackClientScript.php

示例2: setMode

 public function setMode($value)
 {
     $this->_mode = TPropertyValue::ensureEnum($value, 'TApplicationMode');
 }
开发者ID:tejdeeps,项目名称:tejcs.com,代码行数:4,代码来源:pradolite.php

示例3: setMode

 /**
  * @param TColorPickerMode color picker UI mode
  */
 public function setMode($value)
 {
     $this->setViewState('Mode', TPropertyValue::ensureEnum($value, 'TColorPickerMode'), TColorPickerMode::Basic);
 }
开发者ID:bklein01,项目名称:prado,代码行数:7,代码来源:TColorPicker.php

示例4: setTextAlign

 /**
  * @param TTextAlign the alignment of the text caption. Valid values include Left and Right.
  */
 public function setTextAlign($value)
 {
     $this->setViewState('TextAlign', TPropertyValue::ensureEnum($value, 'TTextAlign'), TTextAlign::Right);
 }
开发者ID:bailey-ann,项目名称:stringtools,代码行数:7,代码来源:TCheckBox.php

示例5: setPositionMode

 /**
  * @param TDatePickerPositionMode calendar UI position
  */
 public function setPositionMode($value)
 {
     $this->setViewState('PositionMode', TPropertyValue::ensureEnum($value, 'TDatePickerPositionMode'), TDatePickerPositionMode::Bottom);
 }
开发者ID:ullasnaidu,项目名称:epro,代码行数:7,代码来源:TDatePicker.php

示例6: setScrollBars

 /**
  * @param TScrollBars the visibility and position of scroll bars in a panel control.
  */
 public function setScrollBars($value)
 {
     $this->_scrollBars = TPropertyValue::ensureEnum($value, 'TScrollBars');
 }
开发者ID:Nurudeen,项目名称:prado,代码行数:7,代码来源:TPanelStyle.php

示例7: setInvalidFinderResult

 /**
  * Define the way an active record finder react if an invalid magic-finder invoked
  *
  * @param TActiveRecordInvalidFinderResult
  * @see getInvalidFinderResult
  * @since 3.1.5
  */
 public function setInvalidFinderResult($value)
 {
     $this->_invalidFinderResult = TPropertyValue::ensureEnum($value, 'TActiveRecordInvalidFinderResult');
 }
开发者ID:Nurudeen,项目名称:prado,代码行数:11,代码来源:TActiveRecordConfig.php

示例8: setScrollBars

 /**
  * @param TInlineFrameScrollBars the visibility and position of scroll bars in an iframe.
  */
 public function setScrollBars($value)
 {
     $this->setViewState('ScrollBars', TPropertyValue::ensureEnum($value, 'TInlineFrameScrollBars'), TInlineFrameScrollBars::Auto);
 }
开发者ID:bailey-ann,项目名称:stringtools,代码行数:7,代码来源:TInlineFrame.php

示例9: setValidation

 /**
  * @param TSecurityManagerValidationMode hashing algorithm used to generate HMAC.
  */
 public function setValidation($value)
 {
     $this->_validation = TPropertyValue::ensureEnum($value, 'TSecurityManagerValidationMode');
 }
开发者ID:jetbill,项目名称:hospital-universitario,代码行数:7,代码来源:TSecurityManager.php

示例10: setLineNumberStyle

 /**
  * @param TTextHighlighterLineNumberStyle style of row number
  */
 public function setLineNumberStyle($value)
 {
     $this->setViewState('LineNumberStyle', TPropertyValue::ensureEnum($value, 'TTextHighlighterLineNumberStyle'));
 }
开发者ID:bailey-ann,项目名称:stringtools,代码行数:7,代码来源:TTextHighlighter.php

示例11: getImplementationClass

 /**
  * @return string cache implementation class name.
  */
 public function getImplementationClass()
 {
     $implementation = $this->_implementation;
     if (isset(self::$_cacheTypes[$implementation])) {
         return self::$_cacheTypes[$implementation];
     }
     switch (TPropertyValue::ensureEnum($implementation, 'TSqlMapCacheTypes')) {
         case TSqlMapCacheTypes::FIFO:
             return 'TSqlMapFifoCache';
         case TSqlMapCacheTypes::LRU:
             return 'TSqlMapLruCache';
         case TSqlMapCacheTypes::Basic:
             return 'TSqlMapApplicationCache';
     }
 }
开发者ID:tejdeeps,项目名称:tejcs.com,代码行数:18,代码来源:TSqlMapCacheModel.php

示例12: setDirection

 /**
  * @param TSliderDirection Direction of slider (Horizontal or Vertical)
  */
 public function setDirection($value)
 {
     $this->setViewState('Direction', TPropertyValue::ensureEnum($value, 'TSliderDirection'), TSliderDirection::Horizontal);
 }
开发者ID:tejdeeps,项目名称:tejcs.com,代码行数:7,代码来源:TSlider.php

示例13: setPasswordMode

 /**
  * @param TUserManagerPasswordMode how password is stored, clear text, or MD5 or SHA1 hashed.
  */
 public function setPasswordMode($value)
 {
     $this->_passwordMode = TPropertyValue::ensureEnum($value, 'TUserManagerPasswordMode');
 }
开发者ID:BackupTheBerlios,项目名称:horux-svn,代码行数:7,代码来源:TUserManager.php

示例14: setDisplayMode

 /**
  * @param TValidationSummaryDisplayMode the mode of displaying error messages
  */
 public function setDisplayMode($value)
 {
     $this->setViewState('DisplayMode', TPropertyValue::ensureEnum($value, 'TValidationSummaryDisplayMode'), TValidationSummaryDisplayMode::BulletList);
 }
开发者ID:quantrocket,项目名称:planlogiq,代码行数:7,代码来源:TValidationSummary.php

示例15: setCacheControl

 /**
  * @param string cache control method to use for session pages. Valid values
  *               include none/nocache/private/private_no_expire/public
  */
 public function setCacheControl($value)
 {
     session_cache_limiter(TPropertyValue::ensureEnum($value, array('none', 'nocache', 'private', 'private_no_expire', 'public')));
 }
开发者ID:bailey-ann,项目名称:stringtools,代码行数:8,代码来源:THttpResponse.php


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