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); }
/** * 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')); }
/** * 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')); }
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]; }
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')); }
public function __construct(SiteApplication $app, SiteLayout $layout = null, array $arguments = array()) { parent::__construct($app, $layout, $arguments); $this->initPosts($this->getArgument('page')); }
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); }
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')); }
public function __construct(SiteApplication $app, SiteLayout $layout = null, array $arguments = array()) { parent::__construct($app, $layout, $arguments); $tags = SiteApplication::initVar('tags'); $this->createTagList($tags); }
public function __construct(SiteApplication $app, SiteLayout $layout = null, array $arguments = array()) { parent::__construct($app, $layout, $arguments); $this->inityears(); }
/** * 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(); }
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'); }