コード例 #1
0
ファイル: BlorgYearArchivePage.php プロジェクト: nburka/blorg
 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
ファイル: PinholeAtomPage.php プロジェクト: gauthierm/pinhole
 /**
  * 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
ファイル: BlorgFileLoaderPage.php プロジェクト: nburka/blorg
 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
ファイル: BlorgFrontPage.php プロジェクト: nburka/blorg
 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
ファイル: BlorgAjaxProxyPage.php プロジェクト: nburka/blorg
 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
ファイル: BlorgArchivePage.php プロジェクト: nburka/blorg
 public function __construct(SiteApplication $app, SiteLayout $layout = null, array $arguments = array())
 {
     parent::__construct($app, $layout, $arguments);
     $this->inityears();
 }
コード例 #11
0
ファイル: BlorgTagIndexPage.php プロジェクト: nburka/blorg
 /**
  * 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');
 }