• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP osc_field函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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);
}
开发者ID:acharei,项目名称:OSClass,代码行数:17,代码来源:hPremium.php


示例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, '');
}
开发者ID:mylastof,项目名称:os-class,代码行数:10,代码来源:hUsers.php


示例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);
}
开发者ID:mylastof,项目名称:os-class,代码行数:11,代码来源:hLocale.php


示例4: osc_item_meta_slug

/**
 * Gets item meta slug
 *
 * @return string
 */
function osc_item_meta_slug()
{
    return osc_field(osc_item_meta(), 's_slug', '');
}
开发者ID:randomecho,项目名称:OSClass,代码行数:9,代码来源:hItems.php


示例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', '');
}
开发者ID:acharei,项目名称:OSClass,代码行数:9,代码来源:hSearch.php


示例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);
}
开发者ID:hashemgamal,项目名称:OSClass,代码行数:8,代码来源:hItems.php


示例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);
}
开发者ID:mylastof,项目名称:os-class,代码行数:11,代码来源:hPage.php


示例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, "");
}
开发者ID:oanav,项目名称:closetshare,代码行数:9,代码来源:hCategories.php


示例9: osc_city_area_items

/**
 * Gets city area's items
 *
 * @return int
 */
function osc_city_area_items()
{
    return osc_field(osc_city_area(), 'items', '');
}
开发者ID:oanav,项目名称:closetshare,代码行数:9,代码来源:hLocation.php


示例10: osc_list_city_items

function osc_list_city_items()
{
    return osc_field(osc_list_city(), 'items', '');
}
开发者ID:hashemgamal,项目名称:OSClass,代码行数:4,代码来源:hSearch.php



注:本文中的osc_field函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP osc_file_get_contents函数代码示例发布时间:2022-05-15
下一篇:
PHP osc_esc_js函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap