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


PHP SimpleTag::getAttribute方法代碼示例

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


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

示例1:

 /**
  *    Creates the request packet to be sent by the form.
  *    @param SimpleTag $tag        Form tag to read.
  *    @return string               Packet class.
  *    @access private
  */
 function _setEncodingClass($tag) {
     if (strtolower($tag->getAttribute('method')) == 'post') {
         if (strtolower($tag->getAttribute('enctype')) == 'multipart/form-data') {
             return 'SimpleMultipartEncoding';
         }
         return 'SimplePostEncoding';
     }
     return 'SimpleGetEncoding';
 }
開發者ID:nuckey,項目名稱:moodle,代碼行數:15,代碼來源:form.php

示例2: SimpleForm

 /**
  *    Starts with no held controls/widgets.
  *    @param SimpleTag $tag        Form tag to read.
  *    @param SimpleUrl $url        Location of holding page.
  */
 function SimpleForm($tag, $url)
 {
     $this->_method = $tag->getAttribute('method');
     $this->_action = $this->_createAction($tag->getAttribute('action'), $url);
     $this->_default_target = false;
     $this->_id = $tag->getAttribute('id');
     $this->_buttons = array();
     $this->_images = array();
     $this->_widgets = array();
 }
開發者ID:BGCX067,項目名稱:ezpdo2-svn-to-git,代碼行數:15,代碼來源:form.php

示例3: SimpleForm

 /**
  *    Starts with no held controls/widgets.
  *    @param SimpleTag $tag        Form tag to read.
  */
 function SimpleForm($tag) {
     $this->_method = $tag->getAttribute('method');
     $this->_action = $tag->getAttribute('action');
     $this->_id = $tag->getAttribute('id');
     $this->_buttons = array();
     $this->_images = array();
     $this->_widgets = array();
 }
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:12,代碼來源:tag.php

示例4: SimpleUrl

 /**
  *    Sets the base url for the page.
  *    @param SimpleTag $tag    Base URL for page.
  *    @access protected
  */
 function _setBase(&$tag)
 {
     $url = $tag->getAttribute('href');
     $this->_base = new SimpleUrl($url);
 }
開發者ID:r-kitaev,項目名稱:limb,代碼行數:10,代碼來源:page.php

示例5: setBase

 /**
  *    Sets the base url for the page.
  *    @param SimpleTag $tag    Base URL for page.
  *    @access protected
  */
 protected function setBase($tag)
 {
     $url = $tag->getAttribute('href');
     $this->base = new SimpleUrl($url);
 }
開發者ID:googlecode-mirror,項目名稱:bulldoc,代碼行數:10,代碼來源:page.php

示例6: indexWidgetById

 /**
  *  Fills the widget cache to speed up searching.
  *  @param SimpleTag $widget    Parsed widget to cache.
  */
 private function indexWidgetById($widget)
 {
     $id = $widget->getAttribute('id');
     if (!$id) {
         return;
     }
     if (!isset($this->widgets_by_id[$id])) {
         $this->widgets_by_id[$id] = array();
     }
     $this->widgets_by_id[$id][] = $widget;
 }
開發者ID:ngugijames,項目名稱:ThinkUp,代碼行數:15,代碼來源:tidy_parser.php

示例7: SimpleForm

 /**
  *    Starts with no held controls/widgets.
  *    @param SimpleTag $tag        Form tag to read.
  */
 function SimpleForm($tag)
 {
     $this->_method = $tag->getAttribute("method");
     $this->_action = $tag->getAttribute("action");
     $this->_id = $tag->getAttribute("id");
     $this->_buttons = array();
     $this->_widgets = array();
 }
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:12,代碼來源:tag.php


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