Example #1
0
 function __construct($conn = NULL, $database = NULL)
 {
     if (is_null(GlobalMas::$conn)) {
         GlobalMas::$conn = GenFun::hostConnect($database);
     }
     $this->filesRelPath = $_SERVER['DOCUMENT_ROOT'] . "/" . $this->projectPath . "files/";
     $this->filesPath = GenFun::get_full_url($this->filesRelPath);
     $this->commentRatingMngr = new Rating('commentRatings', 'comments');
     $this->commentMngr = new Comment(1, $this->filesPath);
 }