Ignore:
Timestamp:
2012/02/15 19:38:35 (14 years ago)
Author:
h_yoshimoto
Message:

#1603 #1632 優先度変更処理を修正、rankをpriorityに変更、細かなバグ修正、コメントの追加

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/plugin/SC_Plugin_TemplateSelector.php

    r21509 r21512  
    3939     * コンストラクタ 
    4040     * 
    41      * @param SC_Plugin_TemplateTransformList $objTransformer SC_Plugin_TemplateTransformListオブジェクト 
     41     * @param SC_Plugin_TemplateTransformer $objTransformer SC_Plugin_TemplateTransformerオブジェクト 
    4242     * @param string $current_plugin プラグイン名 
    4343     * @return void 
    4444     */ 
    45     function __construct(SC_Plugin_TemplateTransformList $objTransformer, $current_plugin) { 
     45    function __construct(SC_Plugin_TemplateTransformer $objTransformer, $current_plugin) { 
    4646        $this->objTransformer = $objTransformer; 
    4747        $this->current_plugin = $current_plugin; 
     
    7474     * @return SC_Plugin_TemplateSelector SC_Plugin_TemplateSelectorオブジェクト 
    7575     */ 
    76     function find($selector, $index = NULL, $require = true, $err_msg = NULL, SC_Plugin_TemplateSelector $objSelector = NULL, $parent_index = NULL) { 
     76    function find($selector, $index = NULL, $require = true, $err_msg = NULL) { 
    7777        $objSelectorChild = new SC_Plugin_TemplateSelector($this->objTransformer, $this->current_plugin); 
    78         foreach ($this->arrElements as $key => &$objElement) { 
     78        foreach ($this->arrElements as &$objElement) { 
    7979            $this->objTransformer->find($selector, $index, false, NULL, $objSelectorChild, $objElement[0]); 
    8080        } 
     
    9797     */ 
    9898    function insertBefore($html_snip) { 
    99         foreach ($this->arrElements as $key => $objElement) { 
     99        foreach ($this->arrElements as $objElement) { 
    100100            $this->objTransformer->setTransform('insertBefore', $objElement[0], $html_snip); 
    101101        } 
     
    110110     */ 
    111111    function insertAfter($html_snip) { 
    112         foreach ($this->arrElements as $key => $objElement) { 
     112        foreach ($this->arrElements as $objElement) { 
    113113            $this->objTransformer->setTransform('insertAfter', $objElement[0], $html_snip); 
    114114        } 
     
    123123     */ 
    124124    function appendChild($html_snip) { 
    125         foreach ($this->arrElements as $key => $objElement) { 
     125        foreach ($this->arrElements as $objElement) { 
    126126            $this->objTransformer->setTransform('appendChild', $objElement[0], $html_snip); 
    127127        } 
     
    136136     */ 
    137137    function replaceChild($html_snip) { 
    138         foreach ($this->arrElements as $key => &$objElement) { 
     138        foreach ($this->arrElements as &$objElement) { 
    139139            $this->objTransformer->setTransform('replaceChild', $objElement[0], $html_snip); 
    140140        } 
Note: See TracChangeset for help on using the changeset viewer.