本文整理匯總了PHP中Photo::getPhotoYoungerThanDay方法的典型用法代碼示例。如果您正苦於以下問題:PHP Photo::getPhotoYoungerThanDay方法的具體用法?PHP Photo::getPhotoYoungerThanDay怎麽用?PHP Photo::getPhotoYoungerThanDay使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Photo
的用法示例。
在下文中一共展示了Photo::getPhotoYoungerThanDay方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: showPhotosByDate
public function showPhotosByDate()
{
$posts = Post::getPostsOrdered();
$posts->getEnvironment()->setViewName('pagination::simple');
$checked_albums = Album::getNames();
$year = Input::get('year');
$month = Input::get('month');
$day = Input::get('day');
$photos = Photo::getPhotoYoungerThanDay($year, $month, $day);
$album_ids = Photo::getAlbumIdYoungerThanDay($year, $month, $day);
$users = User::all();
$albums = Album::getAlbumsOrdered();
$users_opt = User::getUserOptions();
$tags = Tag::getTagsOrdered();
$this->layout->title = trans('messages.PLBD');
$this->layout->main = View::make('home', ['recentPosts' => $posts, 'allTags' => $tags])->nest('content', 'photos', compact('photos', 'users', 'albums', 'checked_albums', 'users_opt', 'year', 'month', 'day', 'album_ids'));
}
示例2: listPhotosByDate
public function listPhotosByDate()
{
$checked_albums = Album::getNames();
$year = Input::get('year');
$month = Input::get('month');
$day = Input::get('day');
$photos = Photo::getPhotoYoungerThanDay($year, $month, $day);
$users = User::all();
$albums = Album::getAlbumsOrdered();
$users_opt = User::getUserOptions();
$this->layout->title = trans('messages.PLBD');
$this->layout->main = View::make('users.dashboard')->nest('content', 'photos.list', compact('photos', 'users', 'albums', 'checked_albums', 'users_opt', 'year', 'month', 'day'));
}