本文整理汇总了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();
}