Some statically called functions in plugins now declared statically
This commit is contained in:
parent
6c4c4319ef
commit
c36608b233
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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)) {
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user