public function __construct() { $defaultLocationPath = implode(DIRECTORY_SEPARATOR, array(dirname(__FILE__), '..', '..', 'jobs')); if (!is_dir($defaultLocationPath)) { mkdir($defaultLocationPath, 0755); } $this->setLocation($defaultLocationPath); }