コード例 #1
0
 function prepare()
 {
     $this->_helper = new lmbWysiwygConfigurationHelper();
     if ($profile_name = $this->attributeNodes['profile']) {
         $this->_helper->setProfileName($profile_name->getValue());
     }
     $this->determineComponent();
 }
コード例 #2
0
ファイル: wysiwyg.tag.php プロジェクト: snowjobgit/limb
 function preParse($compiler)
 {
     parent::preParse($compiler);
     // always has closing tag
     $this->has_closing_tag = true;
     $this->_helper = new lmbWysiwygConfigurationHelper();
     if ($profile_name = $this->get('profile')) {
         $this->_helper->setProfileName($profile_name);
     }
     $this->_determineWidget();
 }
コード例 #3
0
 function _initWysiwyg()
 {
     $this->_helper = new lmbWysiwygConfigurationHelper();
     $this->_helper->setProfileName($this->getAttribute('profile_name'));
     if (!$this->getAttribute('rows')) {
         $this->setAttribute('rows', $this->_helper->getOption('rows'));
     }
     if (!$this->getAttribute('cols')) {
         $this->setAttribute('cols', $this->_helper->getOption('cols'));
     }
     if (!$this->getAttribute('width')) {
         $this->setAttribute('width', $this->_helper->getOption('width'));
     }
     if (!$this->getAttribute('height')) {
         $this->setAttribute('height', $this->_helper->getOption('height'));
     }
 }
コード例 #4
0
 function testGetOption_CustomProfile()
 {
     $this->_helper->setProfileName('bar_profile');
     $this->assertEqual($this->_helper->getOption('baz'), 111);
 }