本文整理汇总了PHP中iaCore::fields方法的典型用法代码示例。如果您正苦于以下问题:PHP iaCore::fields方法的具体用法?PHP iaCore::fields怎么用?PHP iaCore::fields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类iaCore
的用法示例。
在下文中一共展示了iaCore::fields方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: switch
$iaView->assign_all($out);
break;
default:
break;
}
}
// process grid actions
if (!isset($out)) {
$iaView->assign_all($iaAlbum->gridActions($_GET));
}
}
// process html page actions
if (iaView::REQUEST_HTML == $iaView->getRequestType()) {
$iaArtist = $iaCore->factoryPackage('artist', IA_CURRENT_PACKAGE, iaCore::ADMIN);
// init classes
$iaFields = iaCore::fields();
switch ($pageAction) {
default:
$iaView->grid('_IA_URL_packages/lyrics/js/admin/albums');
break;
case 'edit':
case 'add':
iaBreadcrumb::add(iaLanguage::get('albums'), IA_ADMIN_URL . 'lyrics/albums/');
// these fields are system and used in system template
$item = array('status' => 'active', 'account_username' => $_SESSION['user']['username'], 'featured' => true);
if ('edit' == $pageAction) {
$item = $iaAlbum->getById((int) $_GET['id']);
if (empty($item)) {
iaView::errorPage(iaView::ERROR_NOT_FOUND);
}
}
示例2:
$album = $album_fav[0];
$iaView->assign('album', $album);
// get artist information
$iaArtist = $iaCore->factoryPackage('artist', IA_CURRENT_PACKAGE);
$artist = $iaArtist->getArtist($album['id_artist']);
$iaView->assign('artist', $artist);
// get artist albums
$albums = $iaAlbum->getAlbumsByArtist($album['id_artist'], "AND `id` <> '{$album['id']}'");
$iaView->assign('albums', $albums);
// get artist lyrics
$iaLyric = $iaCore->factoryPackage('lyric', IA_CURRENT_PACKAGE);
$lyrics = $iaLyric->getLyricsByAlbum($album['id']);
if ($lyrics) {
$lyrics = $iaItem->updateItemsFavorites($lyrics, $iaLyric->getItemName());
// filter fields
iaCore::fields();
$fields = iaField::filterFields($lyrics, $iaLyric->getItemName());
$iaView->assign('fields', $fields);
}
$iaView->assign('lyrics', $lyrics);
// count views
$iaAlbum->incrementViewsCounter($album['id']);
// breadcrumb formation
iaBreadcrumb::add(_t('artists'), 'artists/');
iaBreadcrumb::add($artist['title'], $iaCore->iaSmarty->ia_url(array('type' => 'url', 'item' => $iaArtist->getItemName(), 'data' => $artist)));
// set meta keywords and description
$iaView->set('description', $album['meta_description']);
$iaView->set('keywords', $album['meta_keywords']);
$iaView->title($album['title']);
$iaView->display('albumview');
break;