/** * Returns the JavaScript code of the cssQuery elements. * * <p>You should not call this method directly.</p> * * @access public * * @return string JavaScript source code for the cssQuery elements. * * @static * */ public function process() { $element = $this->getElement(); $returnValue = $element . 's=cssQuery("' . addslashes($this->query) . '");'; $returnValue .= 'for(' . $element . 'sIterator=0;'; $returnValue .= $element . 'sIterator<' . $element . 's.length;'; $returnValue .= $element . 'sIterator++){'; $returnValue .= $element . '=' . $element . 's[' . $element . 'sIterator];'; $returnValue .= parent::process($element); $returnValue .= '}'; return $returnValue; }
/** * Returns the JavaScript code of the DOM elements. * * <p>You should not call this method directly.</p> * * @access public * * @return string JavaScript source code for the DOM elements. * * @static * */ public function process() { $element = $this->getElement(); $returnValue = $element . 's=document.getElementsByTagName("' . $this->tagName . '");'; $returnValue .= 'for(' . $element . 'sIterator=0;'; $returnValue .= $element . 'sIterator<' . $element . 's.length;'; $returnValue .= $element . 'sIterator++){'; $returnValue .= $element . '=' . $element . 's[' . $element . 'sIterator];'; $returnValue .= parent::process($element); $returnValue .= '}'; return $returnValue; }
/** * Returns the JavaScript code of the DOM element. * * <p>You should not call this method directly.</p> * * @access public * * @param string $element The JavaScript element name. * * @return string JavaScript source code for the DOM element. * * @static * */ public function process() { $element = $this->getElement(); $returnValue = $element . '=document.getElementById("' . $this->id . '");'; $returnValue .= parent::process($element); return $returnValue; }