本文整理匯總了PHP中BP_Activity_Activity::get_last_updated方法的典型用法代碼示例。如果您正苦於以下問題:PHP BP_Activity_Activity::get_last_updated方法的具體用法?PHP BP_Activity_Activity::get_last_updated怎麽用?PHP BP_Activity_Activity::get_last_updated使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BP_Activity_Activity
的用法示例。
在下文中一共展示了BP_Activity_Activity::get_last_updated方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: bp_activity_get_last_updated
/**
* Retrieve the last time activity was updated.
*
* @since BuddyPress (1.0.0)
*
* @uses BP_Activity_Activity::get_last_updated() {@link BP_Activity_Activity}
* @uses apply_filters() To call the 'bp_activity_get_last_updated' hook.
*
* @return string Date last updated.
*/
function bp_activity_get_last_updated()
{
return apply_filters('bp_activity_get_last_updated', BP_Activity_Activity::get_last_updated());
}
示例2: bp_activity_get_last_updated
/**
* Retrieve the last time activity was updated.
*
* @since 1.0.0
*
* @uses BP_Activity_Activity::get_last_updated() {@link BP_Activity_Activity}
* @uses apply_filters() To call the 'bp_activity_get_last_updated' hook.
*
* @return string Date last updated.
*/
function bp_activity_get_last_updated()
{
/**
* Filters the value for the last updated time for an activity item.
*
* @since 1.1.0
*
* @param BP_Activity_Activity $last_updated Date last updated.
*/
return apply_filters('bp_activity_get_last_updated', BP_Activity_Activity::get_last_updated());
}
示例3: test_get_last_updated
/**
* @group get_last_updated
*/
public function test_get_last_updated()
{
$now = time();
$a1 = $this->factory->activity->create(array('recorded_time' => date('Y-m-d H:i:s', $now - 500)));
$a2 = $this->factory->activity->create(array('recorded_time' => date('Y-m-d H:i:s', $now - 100)));
$a3 = $this->factory->activity->create(array('recorded_time' => date('Y-m-d H:i:s', $now - 300)));
$this->assertSame(date('Y-m-d H:i:s', $now - 100), BP_Activity_Activity::get_last_updated());
}
示例4: bp_activity_get_last_updated
function bp_activity_get_last_updated()
{
return BP_Activity_Activity::get_last_updated();
}