本文整理汇总了PHP中CSS::clean方法的典型用法代码示例。如果您正苦于以下问题:PHP CSS::clean方法的具体用法?PHP CSS::clean怎么用?PHP CSS::clean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSS
的用法示例。
在下文中一共展示了CSS::clean方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testCssAddIntoResult
function testCssAddIntoResult()
{
CSS::clean();
CSS::require_css_file("/" . FRAMEWORK_CORE_PATH . "tests/html/example_css/my_css_file.css");
$this->assertEqual(1, CSS::get_loaded_css(), "Il numero di css caricati non corrisponde!!");
$this->assertTrue(PageData::instance()->is_set("/page/headers/required_css_files"));
$this->assertEqual(1, count(PageData::instance()->get("/page/headers/required_css_files/css_file_list")), "Il numero di css caricati non corrisponde!!");
}
示例2: __classLoaded
static function __classLoaded($className)
{
self::set_title(null);
self::set_description(null);
self::set_keywords(null);
PageData::instance()->set("/page/headers/indexing_tags", array(Block::MARKER_KEY => "head/indexing_tags"));
PageData::instance()->set("/page/headers/content_type", array(Block::MARKER_KEY => "head/content_type"));
PageData::instance()->set("/page/headers/meta_tags", array(Block::MARKER_KEY => "head/meta_tags_list"));
PageData::instance()->set("/page/headers/meta_tags/list", array());
PageData::instance()->set("/page/headers/page_author", array(Block::MARKER_KEY => "head/author"));
PageData::instance()->set("/page/headers/comment_tags", array(Block::MARKER_KEY => "head/comment_list"));
PageData::instance()->set("/page/headers/comment_tags/list", array());
$year = date("Y");
$copyright_string = "Copyright " . $year . " (c) MBCRAFT";
PageData::instance()->set("/page/headers/page_copyright", array(Block::MARKER_KEY => "head/copyright", "copyright_string" => $copyright_string, "year" => $year));
self::set_layout("ajax");
CSS::clean();
JS::clean();
}