/** * Constructor. * * @param string $element Element name * @param string $scope Scope name * @param string $basePath The base path */ public function __construct($element, $scope, $basePath = '') { $this->_element = $element; $this->_scope = $scope; $this->basePath = $basePath; parent::__construct($this->group, $this->name, $element, $scope); //-- Read the files in /options folder $options = JFolder::files($this->basePath . DS . 'tmpl' . DS . 'options'); foreach ($options as $fName) { $fContents = JFile::read($this->basePath . DS . 'tmpl' . DS . 'options' . DS . $fName); $key = JFile::stripExt($fName); $this->fieldsOptions[$key] = $fContents; } //foreach $this->keys['##ECR_OPTIONS##'] = '__ECR_KEY__'; /* //# $this->keys['##ECR_VIEW1_TMPL1_TDS##'] = '##ECR_KEY##'; // $this->patterns['##ECR_VIEW1_TMPL1_THS##'] = ' <th>'.NL // ." <?php echo JHTML::_('grid.sort', '##ECR_KEY##', // * '##ECR_KEY##', \$this->lists['order_Dir'], \$this->lists['order']);?>".NL // .' </th>'.NL; // $this->patterns['##ECR_VIEW1_TMPL1_TDS##'] = ' <td>'.NL // .' <php echo $row->##ECR_KEY##; ?>'.NL // .' </td>'.NL; * */ }
/** * Constructor. * * @param string $element Element name * @param string $scope Scope name */ public function __construct($element, $scope) { $this->keys['##ECR_VIEW1_TMPL1_THS##'] = '##ECR_KEY##'; $this->keys['##ECR_VIEW1_TMPL1_TDS##'] = '##ECR_KEY##'; $this->patterns['##ECR_VIEW1_TMPL1_THS##'] = ' <th>' . NL . " <?php echo JHTML::_('grid.sort', '##ECR_KEY##', '##ECR_KEY##', \$this->lists['order_Dir']" . ", \$this->lists['order']);?>" . NL . ' </th>' . NL; $this->patterns['##ECR_VIEW1_TMPL1_TDS##'] = ' <td>' . NL . ' <?php echo $row->##ECR_KEY##; ?>' . NL . ' </td>' . NL; $this->_element = $element; $this->_scope = $scope; parent::__construct($this->group, $this->name, $element, $scope); }
/** * Constructor. * * @param string $element The element name * @param string $scope Scope name */ public function __construct($element, $scope) { $this->_element = $element; $this->_scope = $scope; parent::__construct($this->group, $this->name, $element, $scope); }