Вход Регистрация
Файл: concrete5.7.5.6/concrete/src/StyleCustomizer/StyleList.php
Строк: 22
<?php
namespace ConcreteCoreStyleCustomizer;
class 
StyleList {

    protected 
$sets = array();

    public static function 
loadFromXMLFile($file) {
        
$sx simplexml_load_file($file);
        return static::
loadFromXMLElement($sx);
    }

    public static function 
loadFromXMLElement(SimpleXMLElement $sx) {
        
$parser = new StyleListParser($sx);
        return 
$parser->parse();
    }

    public function 
addSet($name) {
        
$s = new Set();
        
$s->setName($name);
        
$this->sets[] = $s;
        return 
$s;
    }

    public function 
getSets() {
        return 
$this->sets;
    }

}
Онлайн: 0
Реклама