Site icon Osclass Documentation & Knowledge Base

hPremium.php

Functions that returns object from static class (view)

osc_get_premiums($max = 2) – Gets new premiums ads

osc_premium() – Gets current premium array from view

osc_premium_field($field, $locale = “”) – Gets a specific field from current premium

Helpers for single premiums

osc_premium_id() – Gets id from current premium

osc_premium_user_id() – Gets user id from current premium

osc_premium_description($locale = “”) – Gets description from current premium, if $locale is unspecified $locale is current user locale

osc_premium_title($locale = “”) – Gets title from current premium, if $locale is unspecified $locale is current user locale

osc_premium_category($locale = “”) – Gets category from current premium

osc_premium_category_description($locale = “”) – Gets category description from current premium, if $locale is unspecified $locale is current user locale

osc_premium_category_id() – Gets category id of current premium

osc_premium_pub_date() – Gets publication date of current premium

osc_premium_mod_date() – Gets modification date of current premium

osc_premium_price() – Gets price of current premium

osc_premium_formated_price() – Gets formatted price of current premium

osc_premium_currency() – Gets currency of current premium

osc_premium_contact_name() – Gets contact name of current premium

osc_premium_contact_email() – Gets contact email of current premium

osc_premium_country() – Gets country name of current premium

osc_premium_country_code() – Gets country code of current premium (ex. US)

osc_premium_region() – Gets region of current premium

osc_premium_city() – Gets city of current premium

osc_premium_city_area() – Gets city area of current premium

osc_premium_address() – Gets address of current premium

osc_premium_show_email() – Gets true if can show email user at frontend, else return false

osc_premium_zip() – Gets zip code of current premium

osc_premium_latitude() – Gets latitude of current premium

osc_premium_longitude() – Gets longitude of current premium

osc_premium_is_premium() – Gets true if current premium is marked premium, else return false

osc_premium_views() – return number of views of current premium

osc_premium_status() – Gets status of current premium.

osc_premium_secret() – Gets secret string of current premium

osc_premium_is_active() – Gets if current premium is active

osc_premium_is_inactive() – Gets if current premium is inactive

osc_premium_is_spam() – Gets if premium is marked as spam

osc_premium_total_comments() – Gets total number of comments of current premium

osc_premium_comments_page() – Gets page of comments in current pagination

Helpers for premium loops

osc_has_premiums() – Gets next premium if there is, else return null

osc_reset_premiums() – Set the internal pointer of array premiums to its first element, and return it.

osc_count_premiums() – Gets number of premiums in current array premiums

osc_count_premium_resources() – Gets number of resources in array resources of current premium

osc_has_premium_resources() – Gets next premium resource if there is, else return null

osc_get_premium_resources() – Gets current resource of current array resources of current premium

osc_count_premium_comments() – Gets number of premium comments of current premium

osc_has_premium_comments() – Gets next comment of current premium comments

osc_priv_count_premiums() – Gets number of premiums

Meta fields

osc_count_premium_meta() – Gets number of premium meta field

osc_has_premium_meta() – Gets next premium meta field if there is, else return null

osc_get_premium_meta() – Gets premium meta fields