Код: Выделить всё
class PageAtrributes
{
private $db_connection;
private $page_title;
public function __construct($db_connection)
{
$this->db_connection = $db_connection;
$this->page_title = '';
}
public function get_page_title()
{
return $this->page_title;
}
public function set_page_title($page_title)
{
$this->page_title = $page_title;
}
}
Код: Выделить всё
function page_properties($objPortal) {
$objPage->set_page_title($myrow['title']);
}
Вызов участнику функция set_page_title() для необъекта
Так что же мне не хватает?
Подробнее здесь: https://stackoverflow.com/questions/545 ... non-object
Мобильная версия