Example #1
0
 /**
  * Setfile path and destinationpath
  */
 public function __construct($fpath = "", $fdest = "")
 {
     parent::__construct();
     $this->connect();
     /*$this->filePath = empty($fpath)?getcwd():$fpath;
       $this->fileDestination = empty($fdest)?getcwd():$fdest;
       if(empty($this->fileName)){$this->getFileName($this->filePath);}*/
 }
Example #2
0
 public function __construct()
 {
     /***  Set current user for the operation
      * @Data $user
      */
     parent::__construct();
     $this->connect();
     // $this->currentUser = $user;
 }
Example #3
0
 /**
  * Constructor that takes user id;
  * @obj (userID)
  */
 public function __construct($obj = "")
 {
     parent::__construct();
     $this->connect();
     $this->UID = !empty($obj) ? $obj : CURID;
     $this->getUser();
     // call getuser
     $this->getAddress();
     // call getaddress
 }