Exemplo n.º 1
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('makeLink', false, false, COMPONENT_TYPE_BOOLEAN);
     // call the superclass for validate the attributes
     parent::init();
 }
Exemplo n.º 2
0
 /**
  * Process
  *
  * @return	boolean	false if the process is aborted
  * @access	public
  */
 function process()
 {
     parent::process();
     if ($this->getAttribute('adm:htmlEditor') !== true) {
         //$tagContent = strip_tags($this->getText());
         $tagContent = $this->getText();
         $this->setText($tagContent);
     } else {
         $tagContent = trim($this->getText());
         $tagContent = str_replace(array("\r\n", "\n", "\r"), "", $tagContent);
         $this->setText($tagContent);
     }
 }