/** * 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);}*/ }
public function __construct() { /*** Set current user for the operation * @Data $user */ parent::__construct(); $this->connect(); // $this->currentUser = $user; }
/** * 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 }