Как в методах простым способом получить ID и Имя расположения?
Что нибудь типа:
Код: Выделить всё
$locationId= $this->getProperty("location_id");
$locationName= $this->getProperty("location_title");
Модератор: immortal
Код: Выделить всё
$locationId= $this->getProperty("location_id");
$locationName= $this->getProperty("location_title");
Код: Выделить всё
$sql = "SELECT title FROM locations WHERE id='{$this->location_id}' limit 1";
$result = SQLSelectOne($sql);
$locationTitle = $result['title'];