- Timestamp:
- 2012/02/15 19:38:35 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/plugin/SC_Plugin_TemplateSelector.php
r21509 r21512 39 39 * コンストラクタ 40 40 * 41 * @param SC_Plugin_TemplateTransform List $objTransformer SC_Plugin_TemplateTransformListオブジェクト41 * @param SC_Plugin_TemplateTransformer $objTransformer SC_Plugin_TemplateTransformerオブジェクト 42 42 * @param string $current_plugin プラグイン名 43 43 * @return void 44 44 */ 45 function __construct(SC_Plugin_TemplateTransform List$objTransformer, $current_plugin) {45 function __construct(SC_Plugin_TemplateTransformer $objTransformer, $current_plugin) { 46 46 $this->objTransformer = $objTransformer; 47 47 $this->current_plugin = $current_plugin; … … 74 74 * @return SC_Plugin_TemplateSelector SC_Plugin_TemplateSelectorオブジェクト 75 75 */ 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) { 77 77 $objSelectorChild = new SC_Plugin_TemplateSelector($this->objTransformer, $this->current_plugin); 78 foreach ($this->arrElements as $key =>&$objElement) {78 foreach ($this->arrElements as &$objElement) { 79 79 $this->objTransformer->find($selector, $index, false, NULL, $objSelectorChild, $objElement[0]); 80 80 } … … 97 97 */ 98 98 function insertBefore($html_snip) { 99 foreach ($this->arrElements as $ key => $objElement) {99 foreach ($this->arrElements as $objElement) { 100 100 $this->objTransformer->setTransform('insertBefore', $objElement[0], $html_snip); 101 101 } … … 110 110 */ 111 111 function insertAfter($html_snip) { 112 foreach ($this->arrElements as $ key => $objElement) {112 foreach ($this->arrElements as $objElement) { 113 113 $this->objTransformer->setTransform('insertAfter', $objElement[0], $html_snip); 114 114 } … … 123 123 */ 124 124 function appendChild($html_snip) { 125 foreach ($this->arrElements as $ key => $objElement) {125 foreach ($this->arrElements as $objElement) { 126 126 $this->objTransformer->setTransform('appendChild', $objElement[0], $html_snip); 127 127 } … … 136 136 */ 137 137 function replaceChild($html_snip) { 138 foreach ($this->arrElements as $key =>&$objElement) {138 foreach ($this->arrElements as &$objElement) { 139 139 $this->objTransformer->setTransform('replaceChild', $objElement[0], $html_snip); 140 140 }
Note: See TracChangeset
for help on using the changeset viewer.
