Some statically called functions in plugins now declared statically

This commit is contained in:
Mikael Nordfeldth 2013-08-18 11:18:45 +02:00
parent 6c4c4319ef
commit c36608b233
7 changed files with 7 additions and 7 deletions

View File

@ -144,7 +144,7 @@ class Bookmark extends Memcached_DataObject
* *
* @return Bookmark found bookmark or null * @return Bookmark found bookmark or null
*/ */
function getByNotice($notice) static function getByNotice($notice)
{ {
return self::staticGet('uri', $notice->uri); return self::staticGet('uri', $notice->uri);
} }

View File

@ -46,7 +46,7 @@ class Photo extends Managed_DataObject
public $description; // text public $description; // text
public $profile_id; // int public $profile_id; // int
public function getByNotice($notice) public static function getByNotice($notice)
{ {
return self::staticGet('uri', $notice->uri); return self::staticGet('uri', $notice->uri);
} }

View File

@ -43,7 +43,7 @@ class Video extends Managed_DataObject
public $url; // varchar (255) public $url; // varchar (255)
public $profile_id; // int public $profile_id; // int
public function getByNotice($notice) public static function getByNotice($notice)
{ {
return self::staticGet('uri', $notice->uri); return self::staticGet('uri', $notice->uri);
} }

View File

@ -99,7 +99,7 @@ class Poll extends Managed_DataObject
* *
* @return Poll found poll or null * @return Poll found poll or null
*/ */
function getByNotice($notice) static function getByNotice($notice)
{ {
return self::staticGet('uri', $notice->uri); return self::staticGet('uri', $notice->uri);
} }

View File

@ -102,7 +102,7 @@ class Poll_response extends Managed_DataObject
* *
* @return Poll_response found response or null * @return Poll_response found response or null
*/ */
function getByNotice($notice) static function getByNotice($notice)
{ {
return self::staticGet('uri', $notice->uri); return self::staticGet('uri', $notice->uri);
} }

View File

@ -120,7 +120,7 @@ class QnA_Answer extends Managed_DataObject
* *
* @return QnA_Answer found response or null * @return QnA_Answer found response or null
*/ */
function getByNotice($notice) static function getByNotice($notice)
{ {
$answer = self::staticGet('uri', $notice->uri); $answer = self::staticGet('uri', $notice->uri);
if (empty($answer)) { if (empty($answer)) {

View File

@ -114,7 +114,7 @@ class QnA_Question extends Managed_DataObject
* *
* @return Question found question or null * @return Question found question or null
*/ */
function getByNotice($notice) static function getByNotice($notice)
{ {
return self::staticGet('uri', $notice->uri); return self::staticGet('uri', $notice->uri);
} }