Pimcore\Model\Schedule\Task\Dao::getById PHP Method

getById() public method

public getById ( $id )
$id
    public function getById($id)
    {
        $data = $this->db->fetchRow("SELECT * FROM schedule_tasks WHERE id = ?", $id);
        if (!$data["id"]) {
            throw new \Exception("there is no task for the requested id");
        }
        $this->assignVariablesToModel($data);
    }