protected function _getFromCSS()
    {
        // styles to apply
        $styles = array();

        // list of the selectors to get in the CSS files
        $getit  = array();

        // get the list of the selectors of each tags
        $lst = array();
        $lst[] = $this->value['id_lst'];
        for ($i=count($this->table)-1; $i>=0; $i--) {
            $lst[] = $this->table[$i]['id_lst'];
        }

        // foreach selectors in the CSS files, verify if it match with the list of selectors
        foreach ($this->cssKeys as $key => $num) {
            if ($this->_getReccursiveStyle($key, $lst)) {
                $getit[$key] = $num;
            }
        }

        // if we have selectors
        if (count($getit)) {
            // get them, but in the definition order, because of priority
            asort($getit);
            foreach ($getit as $key => $val) $styles = array_merge($styles, $this->css[$key]);
        }

        return $styles;
    }
protected function _getFromCSS()
    {
        // styles to apply
        $styles = array();

        // list of the selectors to get in the CSS files
        $getit  = array();

        // get the list of the selectors of each tags
        $lst = array();
        $lst[] = $this->value['id_lst'];
        for ($i=count($this->table)-1; $i>=0; $i--) {
            $lst[] = $this->table[$i]['id_lst'];
        }

        // foreach selectors in the CSS files, verify if it match with the list of selectors
        foreach ($this->cssKeys as $key => $num) {
            if ($this->_getReccursiveStyle($key, $lst)) {
                $getit[$key] = $num;
            }
        }

        // if we have selectors
        if (count($getit)) {
            // get them, but in the definition order, because of priority
            asort($getit);
            foreach ($getit as $key => $val) $styles = array_merge($styles, $this->css[$key]);
        }

        return $styles;
    }
protected function _getFromCSS ( ) { // styles to apply $ styles = array ( ) ; // list of the selectors to get in the CSS files $ getit = array ( ) ; // get the list of the selectors of each tags $ lst = array ( ) ; $ lst [ ] = $ this -> value [ 'id_lst' ] ; for ( $ i = count ( $ this -> table ) - 1 ; $ i >= 0 ; $ i -- ) { $ lst [ ] = $ this -> table [ $ i ] [ 'id_lst' ] ; } // foreach selectors in the CSS files, verify if it match with the list of selectors foreach ( $ this -> cssKeys as $ key => $ num ) { if ( $ this -> _getReccursiveStyle ( $ key , $ lst ) ) { $ getit [ $ key ] = $ num ; } } // if we have selectors if ( count ( $ getit ) ) { // get them, but in the definition order, because of priority asort ( $ getit ) ; foreach ( $ getit as $ key => $ val ) $ styles = array_merge ( $ styles , $ this -> css [ $ key ] ) ; } return $ styles ; }
get the CSS properties of the current tag

@access protected
@return array $styles
get the CSS properties of the current tag