コード例 #1
0
 function __construct($id = NULL)
 {
     $fields = array('article' => new Type\ForeignKey('FelixOnline\\Core\\Article'), 'publication_date' => new Type\DateTimeField(), 'published_by' => new Type\ForeignKey('FelixOnline\\Core\\User'), 'republished' => new Type\BooleanField());
     parent::__construct($fields, $id);
 }
コード例 #2
0
ファイル: BlogPost.php プロジェクト: felixonline/core
 function __construct($id = NULL)
 {
     $fields = array('blog' => new Type\ForeignKey('FelixOnline\\Core\\Blog'), 'content' => new Type\TextField(), 'timestamp' => new Type\DateTimeField(), 'author' => new Type\ForeignKey('FelixOnline\\Core\\User'), 'breaking' => new Type\BooleanField(array('null' => false)), 'title' => new Type\CharField());
     parent::__construct($fields, $id);
 }
コード例 #3
0
ファイル: ArchiveIssue.php プロジェクト: felixonline/core
 function __construct($id = NULL)
 {
     $fields = array('issue' => new Type\IntegerField(), 'date' => new Type\DateTimeField(), 'publication' => new Type\ForeignKey('FelixOnline\\Core\\ArchivePublication'), 'inactive' => new Type\BooleanField());
     parent::__construct($fields, $id);
 }
コード例 #4
0
ファイル: PollLocation.php プロジェクト: felixonline/core
 function __construct($id = NULL)
 {
     $fields = array('description' => new Type\CharField());
     parent::__construct($fields, $id);
 }
コード例 #5
0
 function __construct($id = NULL)
 {
     $fields = array('name' => new Type\CharField(), 'inactive' => new Type\BooleanField());
     parent::__construct($fields, $id);
 }
コード例 #6
0
ファイル: Frontpage.php プロジェクト: felixonline/core
 /**
  * Constructor
  *
  * @param integer $id = Frontpage slot record number
  */
 function __construct($id = NULL)
 {
     $fields = array('article' => new Type\ForeignKey('FelixOnline\\Core\\Article'), 'section' => new Type\CharField(), 'sort_order' => new Type\IntegerField());
     parent::__construct($fields, $id);
 }
コード例 #7
0
ファイル: Blog.php プロジェクト: felixonline/core
 function __construct($id = NULL)
 {
     $fields = array('sprinkler_prefix' => new Type\CharField());
     parent::__construct($fields, $id);
 }
コード例 #8
0
ファイル: ArticleAuthor.php プロジェクト: felixonline/core
 function __construct($id = NULL)
 {
     $fields = array('article' => new Type\ForeignKey('FelixOnline\\Core\\Article'), 'author' => new Type\ForeignKey('FelixOnline\\Core\\User'));
     parent::__construct($fields, $id);
 }
コード例 #9
0
ファイル: ArchiveFile.php プロジェクト: felixonline/core
 function __construct($id = NULL)
 {
     $fields = array('issue_id' => new Type\ForeignKey('FelixOnline\\Core\\ArchiveIssue'), 'part' => new Type\CharField(), 'filename' => new Type\CharField(), 'content' => new Type\TextField());
     parent::__construct($fields, $id);
 }
コード例 #10
0
ファイル: Link.php プロジェクト: felixonline/core
 /**
  * Constructor
  *
  */
 function __construct($link = NULL)
 {
     $fields = array('link' => new Type\CharField(array('primary' => true)), 'url' => new Type\CharField(), 'active' => new Type\BooleanField());
     parent::__construct($fields, $link);
 }
コード例 #11
0
ファイル: Page.php プロジェクト: felixonline/core
 function __construct($id = NULL)
 {
     $fields = array('slug' => new Type\CharField(), 'title' => new Type\CharField(), 'content' => new Type\TextField());
     parent::__construct($fields, $id);
     $this->csrf_token = Utility::generateCSRFToken('generic_page');
 }