Exemplo n.º 1
0
 /**
  * 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);
     }
 }
Exemplo n.º 2
0
 /** 
  * 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);
 }
Exemplo n.º 3
0
 /** 
  * Comment constructor.
  * @param 	$id 	Identifier of comment.
  */
 function __construct($id = 0)
 {
     parent::__construct("commentModuleId", "commentContentTypeId");
     // Initialize values
     $this->init($id);
 }
Exemplo n.º 4
0
 /** 
  * Blog constructor
  * @param 	$id 	Blog id
  */
 function __construct($id = 0, $title = "")
 {
     parent::__construct("blogModuleId", "blogContentId");
     // Initialize values
     $this->init($id, $title);
 }
Exemplo n.º 5
0
 /**
  * Group constructor.
  * @param	$id		Identifier of group.
  */
 function __construct($id = "")
 {
     parent::__construct("groupModuleId", "groupContentTypeId");
     // Initialize values
     $this->init($id);
 }