Exemple #1
0
 /**
  * Constructor.
  * @param string $postTitle Titulo.
  * @param string $postContents Contenido.
  * @param int $commentStatus Estado de los comentarios.
  * @param int $postStatus Estado.
  * @param int $userID Identificador del autor.
  */
 public function __construct($postTitle, $postContents, $commentStatus, $postStatus, $userID)
 {
     parent::__construct(Post::getTableName(), self::$COLUMNS, self::$VALUES);
     $this->postTitle = $postTitle;
     $this->postContents = $postContents;
     $this->commentStatus = $commentStatus;
     $this->postStatus = $postStatus;
     $this->userID = $userID;
 }
Exemple #2
0
 /**
  * Constructor.
  * @param string $commentAutor Nombre del autor.
  * @param string $commentAuthorEmail Email del autor.
  * @param int $commentStatus Estado del comentario. 0 = Sin aprobar, 1 = Aprobado
  * @param string $commentContents Contenido del comentario.
  * @param int $postID Identificador de la entrada/post.
  * @param int $commentUserID Identificador del autor.
  */
 public function __construct($commentAutor, $commentAuthorEmail, $commentStatus, $commentContents, $postID, $commentUserID)
 {
     parent::__construct(Term::getTableName(), self::$COLUMNS, self::$VALUES);
     $this->commentAutor = $commentAutor;
     $this->commentAuthorEmail = $commentAuthorEmail;
     $this->commentStatus = $commentStatus;
     $this->commentContents = $commentContents;
     $this->postID = $postID;
     $this->commentUserID = $commentUserID;
 }
Exemple #3
0
 /**
  * Constructor.
  * @param string $userLogin Nombre de usuario.
  * @param string $userName Nombre real.
  * @param string $userEmail Email.
  * @param string $userPass Contraseña.
  * @param int $userRol Rol asignado.
  * @param string $userUrl Pagina web del usuario.
  */
 public function __construct($userLogin, $userName, $userEmail, $userPass, $userRol, $userUrl)
 {
     parent::__construct(User::getTableName(), self::$COLUMNS, self::$VALUES);
     $this->userLogin = $userLogin;
     $this->userName = $userName;
     $this->userEmail = $userEmail;
     $this->userPass = User::encrypt($userPass);
     $this->userRol = 0;
     $this->userUrl = $userUrl;
 }
Exemple #4
0
 public function __construct($categoryName, $categoryDescription)
 {
     parent::__construct(Category::getTableName(), self::$COLUMNS, self::$VALUES);
     $this->categoryName = $categoryName;
     $this->categoryDescription = $categoryDescription;
 }
Exemple #5
0
 public function __construct($termName, $termDescription)
 {
     parent::__construct(Term::getTableName(), self::$COLUMNS, self::$VALUES);
     $this->termName = $termName;
     $this->termDescription = $termDescription;
 }