1 | <?php |
||
7 | class VKAccount extends VKAPI { |
||
8 | |||
9 | /** |
||
10 | * API Method for this class |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $apiMethod = 'account.'; |
||
14 | |||
15 | /** |
||
16 | * Default Filters To Be Used |
||
17 | */ |
||
18 | const defaultFilters = [ 'friends', 'messages', 'groups' ]; |
||
19 | |||
20 | /** |
||
21 | * VKAccount constructor. |
||
22 | * @param VKBase $vkObject |
||
23 | */ |
||
24 | public function __construct(VKBase $vkObject) { |
||
28 | |||
29 | /** |
||
30 | * Returns non-null values of user counters |
||
31 | * @param array $selectedFilters |
||
32 | * @return array |
||
33 | */ |
||
34 | public function getCounters($selectedFilters = self::defaultFilters) { |
||
41 | |||
42 | /** |
||
43 | * Sets an application screen name (up to 17 characters), that is shown to the user in the left menu. |
||
44 | * @param $userID |
||
45 | * @param $applicationName |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public function setNameInMenu($userID, $applicationName) { |
||
56 | |||
57 | /** |
||
58 | * Marks the current user as online for 15 minutes. |
||
59 | * (This method is available only to standalone-applications.) |
||
60 | * @return mixed |
||
61 | */ |
||
62 | public function setOnline() { |
||
68 | |||
69 | /** |
||
70 | * Marks a current user as Offline. |
||
71 | * (This method is available only to standalone-applications.) |
||
72 | * @return mixed |
||
73 | */ |
||
74 | public function setOffline() { |
||
77 | |||
78 | /** |
||
79 | * Returns a list of active ads (offers) which executed by the user will bring him/her respective number of votes to his balance in the application. |
||
80 | * @param int $setOffset |
||
81 | * @param int $setCount |
||
82 | * @return array |
||
83 | */ |
||
84 | public function getActiveOffers($setOffset = 0, $setCount = 100) { |
||
92 | |||
93 | /** |
||
94 | * Gets settings of the current user in this application. |
||
95 | * @param int $userID |
||
96 | * @return mixed |
||
97 | */ |
||
98 | public function getAppPermissions($userID) { |
||
105 | |||
106 | /** |
||
107 | * Get String of Filters Which Are Allowed To Be Used |
||
108 | * @param $filtersArray |
||
109 | * @return string |
||
110 | */ |
||
111 | private function getAllowedFilters($filtersArray) { |
||
131 | } |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.