public static function loadCssFile(\core_kernel_classes_resource $item, $lang, $styleSheet) {

        $directory = \taoItems_models_classes_ItemsService::singleton()->getItemDirectory($item, $lang);

        // no user style sheet has been created yet
        $file = $directory->getFile($styleSheet);
        if (! $file->exists()) {
            \common_Logger::d('Stylesheet ' . $styleSheet . ' does not exist yet, returning empty array');
            return array();
        }

        return self::cssToArray($file->read());
    }
public static function loadCssFile(\core_kernel_classes_resource $item, $lang, $styleSheet) {

        $directory = \taoItems_models_classes_ItemsService::singleton()->getItemDirectory($item, $lang);

        // no user style sheet has been created yet
        $file = $directory->getFile($styleSheet);
        if (! $file->exists()) {
            \common_Logger::d('Stylesheet ' . $styleSheet . ' does not exist yet, returning empty array');
            return array();
        }

        return self::cssToArray($file->read());
    }
public static function loadCssFile ( \ core_kernel_classes_resource $ item , $ lang , $ styleSheet ) { $ directory = \ taoItems_models_classes_ItemsService :: singleton ( ) -> getItemDirectory ( $ item , $ lang ) ; // no user style sheet has been created yet $ file = $ directory -> getFile ( $ styleSheet ) ; if ( ! $ file -> exists ( ) ) { \ common_Logger :: d ( 'Stylesheet ' . $ styleSheet . ' does not exist yet, returning empty array' ) ; return array ( ) ; } return self :: cssToArray ( $ file -> read ( ) ) ; }
Loads the content of a css file into a css array
Returns an empty stylesheet if it does not yet exist

@param \core_kernel_classes_resource $item
@param string $lang
@param string $styleSheet
@return array array with structure of 'selector' => rules
Loads the content of a css file into a css array Returns an empty stylesheet if it does not yet exist