/**
  * Create the singlton instance of same class
  * @param void
  * @return object instance of this class
  * @access public
  */
 public static function getInstance()
 {
     if (null === self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
 public function getTasks()
 {
     $projectid = JRequest::getVar('pid');
     $tasklist = projectws::getTasksofProject($projectid);
     echo json_encode($tasklist);
     exit;
 }
 /**
  * Constructor
  */
 public function getProjectlistsws()
 {
     $userid = JRequest::getVar('uid');
     $projectlist = projectws::getProjectDetails($userid);
     echo json_encode($projectlist);
     exit;
 }
 /**
  * Constructor
  */
 public function gettimeloadList()
 {
     $project_id = JRequest::getVar('pid');
     $projectusers = projectws::timeloadlist($project_id);
     //call function from library Webservices/projectws
     echo json_encode($projectusers);
     exit;
 }