本文整理汇总了PHP中osc_field函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_field函数的具体用法?PHP osc_field怎么用?PHP osc_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了osc_field函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: osc_premium_category_description
/**
* Gets category description from current premium, if $locale is unspecified $locale is current user locale
*
* @param type $locale
* @return string
*/
function osc_premium_category_description($locale = "")
{
if ($locale == "") {
$locale = osc_current_user_locale();
}
if (!View::newInstance()->_exists('premium_category')) {
View::newInstance()->_exportVariableToView('premium_category', Category::newInstance()->findByPrimaryKey(osc_premium_category_id()));
}
$category = View::newInstance()->_get('premium_category');
return osc_field($category, "s_description", $locale);
}
示例2: osc_alert_field
/**
* Gets a specific field from current alert
*
* @param array $field
* @return mixed
*/
function osc_alert_field($field)
{
return osc_field(View::newInstance()->_current('alerts'), $field, '');
}
示例3: osc_locale_field
/**
* Gets locale generic field
*
* @param $field
* @param $locale
* @return string
*/
function osc_locale_field($field, $locale = '')
{
return osc_field(osc_locale(), $field, $locale);
}
示例4: osc_item_meta_slug
/**
* Gets item meta slug
*
* @return string
*/
function osc_item_meta_slug()
{
return osc_field(osc_item_meta(), 's_slug', '');
}
示例5: osc_latest_search_total
/**
* Gets the current latest search total
*
* @return string
*/
function osc_latest_search_total()
{
return osc_field(osc_latest_search(), 'i_total', '');
}
示例6: osc_item_category_description
function osc_item_category_description($locale = "")
{
if ($locale == "") {
$locale = osc_current_user_locale();
}
$category = Category::newInstance()->findByPrimaryKey(osc_item_category_id());
return osc_field($category, "s_description", $locale);
}
示例7: osc_static_page_field
/**
* Gets current page field
*
* @param string $field
* @param string $locale
* @return string
*/
function osc_static_page_field($field, $locale = '')
{
return osc_field(osc_static_page(), $field, $locale);
}
示例8: osc_category_field
/**
* Low level function: Gets the value of the category attribute
*
* @return <array>
*/
function osc_category_field($field, $locale = '')
{
return osc_field(osc_category(), $field, "");
}
示例9: osc_city_area_items
/**
* Gets city area's items
*
* @return int
*/
function osc_city_area_items()
{
return osc_field(osc_city_area(), 'items', '');
}
示例10: osc_list_city_items
function osc_list_city_items()
{
return osc_field(osc_list_city(), 'items', '');
}