コード例 #1
0
ファイル: Post.class.php プロジェクト: gkathir15/catmis
 /**
  * Post constructor
  * @param 	$id			Identifier of post.
  * @param	$subject	Subject of post (not required).
  */
 function __construct($id = 0, $subject = "")
 {
     // Initialize values
     $this->init($id, $subject);
     // Call parent constructor
     if (!empty($this->blog->id)) {
         parent::__construct("blogModuleId", "blogPostContentId", "blogContentId", $this->blog->id, $this->user->id);
     } else {
         parent::__construct("blogModuleId", "blogPostContentId", "", 0, $this->user->id);
     }
 }
コード例 #2
0
ファイル: Category.class.php プロジェクト: gkathir15/catmis
 /** 
  * Category constructor.
  * @param 	$id 	Identifier of category.
  * @param	$title	Title of category.
  */
 function __construct($id = 0, $title = "")
 {
     parent::__construct("categoryModuleId", "categoryContentTypeId");
     // Initialize values
     $this->init($id, $title);
 }
コード例 #3
0
ファイル: Comment.class.php プロジェクト: gkathir15/catmis
 /** 
  * Comment constructor.
  * @param 	$id 	Identifier of comment.
  */
 function __construct($id = 0)
 {
     parent::__construct("commentModuleId", "commentContentTypeId");
     // Initialize values
     $this->init($id);
 }
コード例 #4
0
ファイル: Blog.class.php プロジェクト: gkathir15/catmis
 /** 
  * Blog constructor
  * @param 	$id 	Blog id
  */
 function __construct($id = 0, $title = "")
 {
     parent::__construct("blogModuleId", "blogContentId");
     // Initialize values
     $this->init($id, $title);
 }
コード例 #5
0
ファイル: Group.class.php プロジェクト: gkathir15/catmis
 /**
  * Group constructor.
  * @param	$id		Identifier of group.
  */
 function __construct($id = "")
 {
     parent::__construct("groupModuleId", "groupContentTypeId");
     // Initialize values
     $this->init($id);
 }