Linked Questions

-2 votes
1 answer
252 views

I am working with an api which answers the requests with "protected" data object like this ( [id:protected] => id:NYhXwGRVDzAAAAAAAAAA62 [name:protected] => 5cf8cdd54328c.EDF ...
Aleman's user avatar
  • 101
0 votes
1 answer
187 views

I have the following object... Google\AdsApi\AdWords\v201809\o\MonthlySearchVolume Object ( [year:protected] => 2018 [month:protected] => 10 [count:protected] => 450000 ) And I ...
user2648990's user avatar
0 votes
0 answers
42 views

I am trying to get the "Id" value from an object an API returns. This is what I get back from an the array $IS_user[0] which the API returns: object(Contact)#165 (5) { ["customFieldFormId"]=> ...
Packy's user avatar
  • 3,633
0 votes
0 answers
40 views

I'm trying to access data from an external API that handles payments. The returned data is structured as below, but I struggle accessing the data inside the data:protected. Payment Object ( [...
pancakecoder's user avatar
0 votes
0 answers
44 views

How do I access _connection::protected using non-object Mysql Object ( [description] => MySQL DBO Driver [_baseConfig:protected] => Array ( [persistent] => 1 ...
Keyur Padalia's user avatar
0 votes
0 answers
29 views

I am using a 3rd party script which returns data in a protected class. InstagramAPI\FollowerResponse Object ( [followers:protected] => Array ( [0] => InstagramAPI\User Object ( [username:protected] =...
Dermot's user avatar
  • 17
0 votes
0 answers
24 views

Is there a way to access and protected property of an object without changing the class in PHP. Is there maybe a workaround to access protected properties? currently i am able to get the <?php ...
Bart's user avatar
  • 1
0 votes
0 answers
27 views

I want to update the Content string within the object. With the first foreach I get this: object(Page)#1716 (20) { ["_cache_statusFlags":protected]=> NULL ["...
user805528's user avatar
0 votes
0 answers
20 views

I need your help. I need to acces to an object proprety. This proprety is in an array and it's protected. I'm working wtih a third library that generate me the object, so I can't create getter and ...
Mohamed Ouedraogo's user avatar
12 votes
2 answers
31k views

I am trying to get the line items of an order. I'm doing this: $order = new WC_Order(147); foreach ($order->get_items() as $key => $lineItem) { print_r('<pre>----'); print_r($...
bstras21's user avatar
  • 1,010
3 votes
2 answers
2k views

In cakephp 2.x in beforeFind I could check if some condition is set by !empty($queryData['conditions'][$this->alias.'.field']) or get the list of fields that would be retrived simply by $queryData['...
dav's user avatar
  • 9,327
2 votes
2 answers
5k views

My Call gets back: print_r($response) GetItemResponseType Object ( [Item:protected] => ItemType Object ( [ApplicationData:protected] => 651034.9.3011 [...
Matthias from Berlin's user avatar
0 votes
1 answer
5k views

I have a object with protected property that I want to get dateTime. 1)modelData->start->dateTime //2017-05-10T17:00:00+05:30 2)modelData->end->dateTime //2017-05-10T17:20:00+05:30 The ...
Ramalingam Perumal's user avatar
0 votes
3 answers
5k views

Simple code will not work! I keep getting the error Trying to get property of non-object on the line with the if statement. I tried accessing this like an array I get a message saying it can't access ...
JLZenor's user avatar
  • 1,490
0 votes
2 answers
2k views

The model is in the vendor folder (normal package). I need to access an attribute of the model which is protected. NOTE: Not possible of making a getter in the model class.
Ardit's user avatar
  • 98

15 30 50 per page