當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。