DJJob.php
public function getAttempts() {
        $rs = $this->runQuery(
            "SELECT attempts FROM " . self::$jobsTable . " WHERE id = ?",
            array($this->job_id)
        );
        foreach ($rs as $r) return $r["attempts"];
        return false;
    }
public function getAttempts() {
        $rs = $this->runQuery(
            "SELECT attempts FROM " . self::$jobsTable . " WHERE id = ?",
            array($this->job_id)
        );
        foreach ($rs as $r) return $r["attempts"];
        return false;
    }
public function getAttempts ( ) { $ rs = $ this -> runQuery ( "SELECT attempts FROM " . self :: $ jobsTable . " WHERE id = ?" , array ( $ this -> job_id ) ) ; foreach ( $ rs as $ r ) return $ r [ "attempts" ] ; return false ; }
Returns the amount of attempts left for this job.

@return bool The amount of attempts left.
Returns the amount of attempts left for this job .