Здравствуйте!
Имею два класса:
abstract class One{
protected $is_array;
protected $client;
public function __construct()
{
$this->client = $this->connect();
}
public function setIsArray($is_array)
{
$this->is_array = $is_array;
}
public function GetItemsById($guids )
{
$params["ItemsId"] = $guids;
$array = $this->client->GetItemsById($params);
return $array->return->Items;
}
}
class move extends One
{
public function getPagesToMove()
{
parent::setIsArray(true);
$items = parent::GetItemsById("fb90");
}
}
В итоге получаю ошибку - Using $this when not in object context in /services.php on line 23, 23 строка - $array = $this->client->GetItemsById($params);