@@ -87,11 +87,11 @@ |
||
87 | 87 | protected function takeAttributeFromDOM($attribute) |
88 | 88 | { |
89 | 89 | switch ($attribute->localName) { |
90 | - case 'type': |
|
91 | - $this->_type = $attribute->nodeValue; |
|
92 | - break; |
|
93 | - default: |
|
94 | - parent::takeAttributeFromDOM($attribute); |
|
90 | + case 'type': |
|
91 | + $this->_type = $attribute->nodeValue; |
|
92 | + break; |
|
93 | + default: |
|
94 | + parent::takeAttributeFromDOM($attribute); |
|
95 | 95 | } |
96 | 96 | } |
97 | 97 |
@@ -99,14 +99,14 @@ |
||
99 | 99 | protected function takeAttributeFromDOM($attribute) |
100 | 100 | { |
101 | 101 | switch ($attribute->localName) { |
102 | - case 'relationship': |
|
103 | - $this->_relationship = $attribute->nodeValue; |
|
104 | - break; |
|
105 | - case 'type': |
|
106 | - $this->_type = $attribute->nodeValue; |
|
107 | - break; |
|
108 | - default: |
|
109 | - parent::takeAttributeFromDOM($attribute); |
|
102 | + case 'relationship': |
|
103 | + $this->_relationship = $attribute->nodeValue; |
|
104 | + break; |
|
105 | + case 'type': |
|
106 | + $this->_type = $attribute->nodeValue; |
|
107 | + break; |
|
108 | + default: |
|
109 | + parent::takeAttributeFromDOM($attribute); |
|
110 | 110 | } |
111 | 111 | } |
112 | 112 |
@@ -58,7 +58,7 @@ |
||
58 | 58 | * @param string $relationship |
59 | 59 | * @param string $type |
60 | 60 | */ |
61 | - public function __construct($text = null, $relationship = null, $type = null) |
|
61 | + public function __construct($text = null, $relationship = null, $type = null) |
|
62 | 62 | { |
63 | 63 | $this->registerAllNamespaces(Zend_Gdata_Media::$namespaces); |
64 | 64 | parent::__construct(); |
@@ -99,14 +99,14 @@ |
||
99 | 99 | protected function takeAttributeFromDOM($attribute) |
100 | 100 | { |
101 | 101 | switch ($attribute->localName) { |
102 | - case 'role': |
|
103 | - $this->_role = $attribute->nodeValue; |
|
104 | - break; |
|
105 | - case 'scheme': |
|
106 | - $this->_scheme = $attribute->nodeValue; |
|
107 | - break; |
|
108 | - default: |
|
109 | - parent::takeAttributeFromDOM($attribute); |
|
102 | + case 'role': |
|
103 | + $this->_role = $attribute->nodeValue; |
|
104 | + break; |
|
105 | + case 'scheme': |
|
106 | + $this->_scheme = $attribute->nodeValue; |
|
107 | + break; |
|
108 | + default: |
|
109 | + parent::takeAttributeFromDOM($attribute); |
|
110 | 110 | } |
111 | 111 | } |
112 | 112 |
@@ -58,7 +58,7 @@ |
||
58 | 58 | * @param string $role |
59 | 59 | * @param string $scheme |
60 | 60 | */ |
61 | - public function __construct($text = null, $role = null, $scheme = null) |
|
61 | + public function __construct($text = null, $role = null, $scheme = null) |
|
62 | 62 | { |
63 | 63 | $this->registerAllNamespaces(Zend_Gdata_Media::$namespaces); |
64 | 64 | parent::__construct(); |
@@ -89,11 +89,11 @@ |
||
89 | 89 | protected function takeAttributeFromDOM($attribute) |
90 | 90 | { |
91 | 91 | switch ($attribute->localName) { |
92 | - case 'scheme': |
|
93 | - $this->_scheme = $attribute->nodeValue; |
|
94 | - break; |
|
95 | - default: |
|
96 | - parent::takeAttributeFromDOM($attribute); |
|
92 | + case 'scheme': |
|
93 | + $this->_scheme = $attribute->nodeValue; |
|
94 | + break; |
|
95 | + default: |
|
96 | + parent::takeAttributeFromDOM($attribute); |
|
97 | 97 | } |
98 | 98 | } |
99 | 99 |
@@ -87,11 +87,11 @@ |
||
87 | 87 | protected function takeAttributeFromDOM($attribute) |
88 | 88 | { |
89 | 89 | switch ($attribute->localName) { |
90 | - case 'url': |
|
91 | - $this->_url = $attribute->nodeValue; |
|
92 | - break; |
|
93 | - default: |
|
94 | - parent::takeAttributeFromDOM($attribute); |
|
90 | + case 'url': |
|
91 | + $this->_url = $attribute->nodeValue; |
|
92 | + break; |
|
93 | + default: |
|
94 | + parent::takeAttributeFromDOM($attribute); |
|
95 | 95 | } |
96 | 96 | } |
97 | 97 |
@@ -120,20 +120,20 @@ |
||
120 | 120 | protected function takeAttributeFromDOM($attribute) |
121 | 121 | { |
122 | 122 | switch ($attribute->localName) { |
123 | - case 'type': |
|
124 | - $this->_type = $attribute->nodeValue; |
|
125 | - break; |
|
126 | - case 'lang': |
|
127 | - $this->_lang = $attribute->nodeValue; |
|
128 | - break; |
|
129 | - case 'start': |
|
130 | - $this->_start = $attribute->nodeValue; |
|
131 | - break; |
|
132 | - case 'end': |
|
133 | - $this->_end = $attribute->nodeValue; |
|
134 | - break; |
|
135 | - default: |
|
136 | - parent::takeAttributeFromDOM($attribute); |
|
123 | + case 'type': |
|
124 | + $this->_type = $attribute->nodeValue; |
|
125 | + break; |
|
126 | + case 'lang': |
|
127 | + $this->_lang = $attribute->nodeValue; |
|
128 | + break; |
|
129 | + case 'start': |
|
130 | + $this->_start = $attribute->nodeValue; |
|
131 | + break; |
|
132 | + case 'end': |
|
133 | + $this->_end = $attribute->nodeValue; |
|
134 | + break; |
|
135 | + default: |
|
136 | + parent::takeAttributeFromDOM($attribute); |
|
137 | 137 | } |
138 | 138 | } |
139 | 139 |
@@ -112,7 +112,7 @@ |
||
112 | 112 | * Returns the entry's mediaGroup object. |
113 | 113 | * |
114 | 114 | * @return Zend_Gdata_Media_Extension_MediaGroup |
115 | - */ |
|
115 | + */ |
|
116 | 116 | public function getMediaGroup() |
117 | 117 | { |
118 | 118 | return $this->_mediaGroup; |
@@ -97,14 +97,14 @@ |
||
97 | 97 | { |
98 | 98 | $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; |
99 | 99 | switch ($absoluteNodeName) { |
100 | - case $this->lookupNamespace('media') . ':' . 'group': |
|
101 | - $mediaGroup = new Zend_Gdata_Media_Extension_MediaGroup(); |
|
102 | - $mediaGroup->transferFromDOM($child); |
|
103 | - $this->_mediaGroup = $mediaGroup; |
|
104 | - break; |
|
105 | - default: |
|
106 | - parent::takeChildFromDOM($child); |
|
107 | - break; |
|
100 | + case $this->lookupNamespace('media') . ':' . 'group': |
|
101 | + $mediaGroup = new Zend_Gdata_Media_Extension_MediaGroup(); |
|
102 | + $mediaGroup->transferFromDOM($child); |
|
103 | + $this->_mediaGroup = $mediaGroup; |
|
104 | + break; |
|
105 | + default: |
|
106 | + parent::takeChildFromDOM($child); |
|
107 | + break; |
|
108 | 108 | } |
109 | 109 | } |
110 | 110 |
@@ -159,8 +159,8 @@ discard block |
||
159 | 159 | // completes. (See ZF-5949) |
160 | 160 | $response = $e->getResponse(); |
161 | 161 | if (!$response) { |
162 | - require_once('Zend/Gdata/App/IOException.php'); |
|
163 | - throw new Zend_Gdata_App_IOException('No HTTP response received (possible connection failure)'); |
|
162 | + require_once('Zend/Gdata/App/IOException.php'); |
|
163 | + throw new Zend_Gdata_App_IOException('No HTTP response received (possible connection failure)'); |
|
164 | 164 | } |
165 | 165 | |
166 | 166 | try { |
@@ -334,18 +334,18 @@ discard block |
||
334 | 334 | * instead of the default domain for this service instance. |
335 | 335 | * @throws Zend_Gdata_App_InvalidArgumentException |
336 | 336 | */ |
337 | - public function getBaseUrl($domain = null) |
|
338 | - { |
|
339 | - if ($domain !== null) { |
|
340 | - return self::APPS_BASE_FEED_URI . '/' . $domain; |
|
341 | - } else if ($this->_domain !== null) { |
|
342 | - return self::APPS_BASE_FEED_URI . '/' . $this->_domain; |
|
343 | - } else { |
|
344 | - require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
|
345 | - throw new Zend_Gdata_App_InvalidArgumentException( |
|
346 | - 'Domain must be specified.'); |
|
347 | - } |
|
348 | - } |
|
337 | + public function getBaseUrl($domain = null) |
|
338 | + { |
|
339 | + if ($domain !== null) { |
|
340 | + return self::APPS_BASE_FEED_URI . '/' . $domain; |
|
341 | + } else if ($this->_domain !== null) { |
|
342 | + return self::APPS_BASE_FEED_URI . '/' . $this->_domain; |
|
343 | + } else { |
|
344 | + require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
|
345 | + throw new Zend_Gdata_App_InvalidArgumentException( |
|
346 | + 'Domain must be specified.'); |
|
347 | + } |
|
348 | + } |
|
349 | 349 | |
350 | 350 | /** |
351 | 351 | * Retrieve a UserFeed containing multiple UserEntry objects. |
@@ -858,18 +858,18 @@ discard block |
||
858 | 858 | $class = $matches[1]; |
859 | 859 | $foundClassName = null; |
860 | 860 | foreach ($this->_registeredPackages as $name) { |
861 | - try { |
|
862 | - // Autoloading disabled on next line for compatibility |
|
863 | - // with magic factories. See ZF-6660. |
|
864 | - if (!class_exists($name . '_' . $class, false)) { |
|
861 | + try { |
|
862 | + // Autoloading disabled on next line for compatibility |
|
863 | + // with magic factories. See ZF-6660. |
|
864 | + if (!class_exists($name . '_' . $class, false)) { |
|
865 | 865 | require_once 'Zend/Loader.php'; |
866 | 866 | @Zend_Loader::loadClass($name . '_' . $class); |
867 | - } |
|
868 | - $foundClassName = $name . '_' . $class; |
|
869 | - break; |
|
870 | - } catch (Zend_Exception $e) { |
|
871 | - // package wasn't here- continue searching |
|
872 | - } |
|
867 | + } |
|
868 | + $foundClassName = $name . '_' . $class; |
|
869 | + break; |
|
870 | + } catch (Zend_Exception $e) { |
|
871 | + // package wasn't here- continue searching |
|
872 | + } |
|
873 | 873 | } |
874 | 874 | if ($foundClassName != null) { |
875 | 875 | $reflectionObj = new ReflectionClass($foundClassName); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | * @throws Zend_Gdata_Gapps_ServiceException |
196 | 196 | * @return Zend_Gdata_App_Feed |
197 | 197 | */ |
198 | - public static function import($uri, $client = null, $className='Zend_Gdata_App_Feed', $useObjectMapping = true) |
|
198 | + public static function import($uri, $client = null, $className = 'Zend_Gdata_App_Feed', $useObjectMapping = true) |
|
199 | 199 | { |
200 | 200 | try { |
201 | 201 | return parent::import($uri, $client, $className, $useObjectMapping); |
@@ -906,7 +906,7 @@ discard block |
||
906 | 906 | * @throws Zend_Gdata_App_HttpException |
907 | 907 | * @throws Zend_Gdata_Gapps_ServiceException |
908 | 908 | */ |
909 | - public function createUser ($username, $givenName, $familyName, $password, |
|
909 | + public function createUser($username, $givenName, $familyName, $password, |
|
910 | 910 | $passwordHashFunction = null, $quotaLimitInMB = null) { |
911 | 911 | $user = $this->newUserEntry(); |
912 | 912 | $user->login = $this->newLogin(); |
@@ -932,7 +932,7 @@ discard block |
||
932 | 932 | * @throws Zend_Gdata_App_InvalidArgumentException |
933 | 933 | * @throws Zend_Gdata_App_HttpException |
934 | 934 | */ |
935 | - public function retrieveUser ($username) { |
|
935 | + public function retrieveUser($username) { |
|
936 | 936 | $query = $this->newUserQuery($username); |
937 | 937 | try { |
938 | 938 | $user = $this->getUserEntry($query); |
@@ -960,7 +960,7 @@ discard block |
||
960 | 960 | * @throws Zend_Gdata_App_HttpException |
961 | 961 | * @throws Zend_Gdata_Gapps_ServiceException |
962 | 962 | */ |
963 | - public function retrievePageOfUsers ($startUsername = null) { |
|
963 | + public function retrievePageOfUsers($startUsername = null) { |
|
964 | 964 | $query = $this->newUserQuery(); |
965 | 965 | $query->setStartUsername($startUsername); |
966 | 966 | return $this->getUserFeed($query); |
@@ -978,7 +978,7 @@ discard block |
||
978 | 978 | * @throws Zend_Gdata_App_HttpException |
979 | 979 | * @throws Zend_Gdata_Gapps_ServiceException |
980 | 980 | */ |
981 | - public function retrieveAllUsers () { |
|
981 | + public function retrieveAllUsers() { |
|
982 | 982 | return $this->retrieveAllEntriesForFeed($this->retrievePageOfUsers()); |
983 | 983 | } |
984 | 984 | |
@@ -1131,7 +1131,7 @@ discard block |
||
1131 | 1131 | * @throws Zend_Gdata_App_HttpException |
1132 | 1132 | * @throws Zend_Gdata_Gapps_ServiceException |
1133 | 1133 | */ |
1134 | - public function retrievePageOfNicknames ($startNickname = null) { |
|
1134 | + public function retrievePageOfNicknames($startNickname = null) { |
|
1135 | 1135 | $query = $this->newNicknameQuery(); |
1136 | 1136 | $query->setStartNickname($startNickname); |
1137 | 1137 | return $this->getNicknameFeed($query); |
@@ -1149,7 +1149,7 @@ discard block |
||
1149 | 1149 | * @throws Zend_Gdata_App_HttpException |
1150 | 1150 | * @throws Zend_Gdata_Gapps_ServiceException |
1151 | 1151 | */ |
1152 | - public function retrieveAllNicknames () { |
|
1152 | + public function retrieveAllNicknames() { |
|
1153 | 1153 | return $this->retrieveAllEntriesForFeed($this->retrievePageOfNicknames()); |
1154 | 1154 | } |
1155 | 1155 | |
@@ -1189,14 +1189,14 @@ discard block |
||
1189 | 1189 | $properties[$i]->value = $groupName; |
1190 | 1190 | $i++; |
1191 | 1191 | |
1192 | - if($description != null) { |
|
1192 | + if ($description != null) { |
|
1193 | 1193 | $properties[$i] = $this->newProperty(); |
1194 | 1194 | $properties[$i]->name = 'description'; |
1195 | 1195 | $properties[$i]->value = $description; |
1196 | 1196 | $i++; |
1197 | 1197 | } |
1198 | 1198 | |
1199 | - if($emailPermission != null) { |
|
1199 | + if ($emailPermission != null) { |
|
1200 | 1200 | $properties[$i] = $this->newProperty(); |
1201 | 1201 | $properties[$i]->name = 'emailPermission'; |
1202 | 1202 | $properties[$i]->value = $emailPermission; |
@@ -1278,7 +1278,7 @@ discard block |
||
1278 | 1278 | $results = false; |
1279 | 1279 | } |
1280 | 1280 | |
1281 | - if($results) { |
|
1281 | + if ($results) { |
|
1282 | 1282 | return TRUE; |
1283 | 1283 | } else { |
1284 | 1284 | return FALSE; |
@@ -1394,7 +1394,7 @@ discard block |
||
1394 | 1394 | $results = false; |
1395 | 1395 | } |
1396 | 1396 | |
1397 | - if($results) { |
|
1397 | + if ($results) { |
|
1398 | 1398 | return TRUE; |
1399 | 1399 | } else { |
1400 | 1400 | return FALSE; |
@@ -1437,21 +1437,21 @@ discard block |
||
1437 | 1437 | $properties[$i]->value = $groupId; |
1438 | 1438 | $i++; |
1439 | 1439 | |
1440 | - if($groupName != null) { |
|
1440 | + if ($groupName != null) { |
|
1441 | 1441 | $properties[$i] = $this->newProperty(); |
1442 | 1442 | $properties[$i]->name = 'groupName'; |
1443 | 1443 | $properties[$i]->value = $groupName; |
1444 | 1444 | $i++; |
1445 | 1445 | } |
1446 | 1446 | |
1447 | - if($description != null) { |
|
1447 | + if ($description != null) { |
|
1448 | 1448 | $properties[$i] = $this->newProperty(); |
1449 | 1449 | $properties[$i]->name = 'description'; |
1450 | 1450 | $properties[$i]->value = $description; |
1451 | 1451 | $i++; |
1452 | 1452 | } |
1453 | 1453 | |
1454 | - if($emailPermission != null) { |
|
1454 | + if ($emailPermission != null) { |
|
1455 | 1455 | $properties[$i] = $this->newProperty(); |
1456 | 1456 | $properties[$i]->name = 'emailPermission'; |
1457 | 1457 | $properties[$i]->value = $emailPermission; |
@@ -1479,7 +1479,7 @@ discard block |
||
1479 | 1479 | { |
1480 | 1480 | $query = $this->newGroupQuery(); |
1481 | 1481 | $query->setMember($memberId); |
1482 | - if($directOnly != null) { |
|
1482 | + if ($directOnly != null) { |
|
1483 | 1483 | $query->setDirectOnly($directOnly); |
1484 | 1484 | } |
1485 | 1485 | return $this->getGroupFeed($query); |
@@ -1498,7 +1498,7 @@ discard block |
||
1498 | 1498 | * @throws Zend_Gdata_App_HttpException |
1499 | 1499 | * @throws Zend_Gdata_Gapps_ServiceException |
1500 | 1500 | */ |
1501 | - public function retrievePageOfGroups ($startGroup = null) |
|
1501 | + public function retrievePageOfGroups($startGroup = null) |
|
1502 | 1502 | { |
1503 | 1503 | $query = $this->newGroupQuery(); |
1504 | 1504 | $query->setStartGroupId($startGroup); |
@@ -1569,7 +1569,7 @@ discard block |
||
1569 | 1569 | * @throws Zend_Gdata_App_HttpException |
1570 | 1570 | * @throws Zend_Gdata_Gapps_ServiceException |
1571 | 1571 | */ |
1572 | - public function retrievePageOfEmailLists ($startNickname = null) { |
|
1572 | + public function retrievePageOfEmailLists($startNickname = null) { |
|
1573 | 1573 | $query = $this->newEmailListQuery(); |
1574 | 1574 | $query->setStartEmailListName($startNickname); |
1575 | 1575 | return $this->getEmailListFeed($query); |
@@ -1622,7 +1622,7 @@ discard block |
||
1622 | 1622 | $who = $this->newWho(); |
1623 | 1623 | $who->email = $recipientAddress; |
1624 | 1624 | $entry->who = $who; |
1625 | - $address = $this->getBaseUrl() . self::APPS_EMAIL_LIST_PATH . '/' . |
|
1625 | + $address = $this->getBaseUrl() . self::APPS_EMAIL_LIST_PATH . '/' . |
|
1626 | 1626 | $emailList . self::APPS_EMAIL_LIST_RECIPIENT_POSTFIX . '/'; |
1627 | 1627 | return $this->insertEmailListRecipient($entry, $address); |
1628 | 1628 | } |
@@ -1642,7 +1642,7 @@ discard block |
||
1642 | 1642 | * @throws Zend_Gdata_App_HttpException |
1643 | 1643 | * @throws Zend_Gdata_Gapps_ServiceException |
1644 | 1644 | */ |
1645 | - public function retrievePageOfRecipients ($emailList, |
|
1645 | + public function retrievePageOfRecipients($emailList, |
|
1646 | 1646 | $startRecipient = null) { |
1647 | 1647 | $query = $this->newEmailListRecipientQuery(); |
1648 | 1648 | $query->setEmailListName($emailList); |
@@ -58,10 +58,10 @@ |
||
58 | 58 | * @param string $value The ID of the photo to retrieve, or null to |
59 | 59 | * clear. |
60 | 60 | */ |
61 | - public function setPhotoId($value) |
|
62 | - { |
|
63 | - $this->_photoId = $value; |
|
64 | - } |
|
61 | + public function setPhotoId($value) |
|
62 | + { |
|
63 | + $this->_photoId = $value; |
|
64 | + } |
|
65 | 65 | |
66 | 66 | /** |
67 | 67 | * Get the photo ID which is to be returned. |