function prepare() { $this->_helper = new lmbWysiwygConfigurationHelper(); if ($profile_name = $this->attributeNodes['profile']) { $this->_helper->setProfileName($profile_name->getValue()); } $this->determineComponent(); }
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(); }
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')); } }
function testGetOption_CustomProfile() { $this->_helper->setProfileName('bar_profile'); $this->assertEqual($this->_helper->getOption('baz'), 111); }