Atom::__construct PHP Метод

__construct() публичный Метод

创建Feed对象
public __construct ( string $charset = 'UTF-8' )
$charset string
    public function __construct($charset = 'UTF-8')
    {
        $this->_charset = $charset;
        $this->_special = array_map('chr', range(0, 8));
    }

Usage Example

Пример #1
0
 /**
  * @constructor
  */
 public function __construct($config)
 {
     $config['url'] = sprintf('http://github.com/%s.atom', $config['username']);
     $config['link'] = 'http://github.com/' . $config['username'] . '/';
     parent::__construct($config);
     $this->setItemTemplate('<li class="clearfix"><a href="{%link%}">{%title%}</a></li>' . "\n");
 }
All Usage Examples Of Atom::__construct