Pimcore\Model\Tool\Tracking\Event\Dao::getById PHP Метод

getById() публичный Метод

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