Пример #1
0
 public function __construct(SiteApplication $app, SiteLayout $layout = null, array $arguments = array())
 {
     parent::__construct($app, $layout, $arguments);
     $year = $this->getArgument('year');
     $this->initMonths($year, $this->getArgument('page'));
     $this->year = intval($year);
 }
Пример #2
0
 /**
  * Creates a new Atom post page
  *
  * @param SiteWebApplication $app the application.
  * @param SiteLayout $layout
  * @param string $dimension_shortname
  */
 public function __construct(SiteWebApplication $app, SiteLayout $layout, array $arguments = array())
 {
     $layout = new SiteLayout($app, 'Site/layouts/xhtml/atom.php');
     parent::__construct($app, $layout, $arguments);
     $tags = SiteApplication::initVar('tags');
     $this->createTagList($tags);
     $this->dimension = $this->initDimension($this->getArgument('dimension_shortname'));
 }
Пример #3
0
    /**
     * Creates a new author index page
     *
     * @param SiteWebApplication $app the application.
     * @param SiteLayout $layout
     */
    public function __construct(SiteWebApplication $app, SiteLayout $layout, array $arguments = array())
    {
        parent::__construct($app, $layout, $arguments);
        $instance_id = $this->app->getInstanceId();
        $sql = sprintf('select * from BlorgAuthor
			where instance %s %s and visible = %s', SwatDB::equalityOperator($instance_id), $this->app->db->quote($instance_id, 'integer'), $this->app->db->quote(true, 'boolean'));
        $this->authors = SwatDB::query($this->app->db, $sql, SwatDBClassMap::get('BlorgAuthorWrapper'));
    }
Пример #4
0
 public function __construct(SiteApplication $app, SiteLayout $layout = null, array $arguments = array())
 {
     parent::__construct($app, $layout, $arguments);
     $year = $this->getArgument('year');
     $month_name = $this->getArgument('month_name');
     $this->initPosts($year, $month_name);
     $this->year = intval($year);
     $this->month = BlorgPageFactory::$months_by_name[$month_name];
 }
Пример #5
0
 public function __construct(SiteApplication $app, SiteLayout $layout = null, array $arguments = array())
 {
     $layout = new SiteLayout($app, 'Site/layouts/xhtml/fileloader.php');
     parent::__construct($app, $layout, $arguments);
     $this->initFile($this->getArgument('filename'));
 }
Пример #6
0
 public function __construct(SiteApplication $app, SiteLayout $layout = null, array $arguments = array())
 {
     parent::__construct($app, $layout, $arguments);
     $this->initPosts($this->getArgument('page'));
 }
Пример #7
0
 public function __construct(SiteApplication $app, SiteLayout $layout = null, array $arguments = array())
 {
     $layout = new SiteLayout($app, 'Site/layouts/xhtml/atom.php');
     parent::__construct($app, $layout, $arguments);
 }
Пример #8
0
 public function __construct(SiteApplication $app, SiteLayout $layout = null, array $arguments = array())
 {
     $layout = new SiteLayout($app, 'Blorg/layouts/xhtml/ajax-proxy.php');
     parent::__construct($app, $layout, $arguments);
     $this->initUri($this->getArgument('source'));
 }
Пример #9
0
 public function __construct(SiteApplication $app, SiteLayout $layout = null, array $arguments = array())
 {
     parent::__construct($app, $layout, $arguments);
     $tags = SiteApplication::initVar('tags');
     $this->createTagList($tags);
 }
Пример #10
0
 public function __construct(SiteApplication $app, SiteLayout $layout = null, array $arguments = array())
 {
     parent::__construct($app, $layout, $arguments);
     $this->inityears();
 }
Пример #11
0
 /**
  * Creates a new archive page
  *
  * @param SiteWebApplication $app the application.
  * @param SiteLayout $layout
  */
 public function __construct(SiteWebApplication $app, SiteLayout $layout)
 {
     parent::__construct($app, $layout);
     $this->initTags();
 }
Пример #12
0
 public function __construct(SiteApplication $app, SiteLayout $layout, array $arguments)
 {
     parent::__construct($app, $layout, $arguments);
     $this->photo = $this->getPhoto($this->getArgument('filename'));
     $this->dimension_shortname = $this->getArgument('dimension_shortname');
 }