Osclass Documentation - Guides, Tutorials & Dev Resources
Hosting Forums Market
Osclass

Getting Started (5)

Config & Troubleshoot (14)

Administration (41)

Settings (11)

Tools (10)

Features (7)

Developer Guide (36)

Helper Functions (22)

hCategories.php

hCurrency.php

hDatabaseInfo.php

hDefines.php

hErrors.php

hItems.php

hLocale.php

hLocation.php

hMessages.php

hPage.php

hPagination.php

hPlugins.php

hPreference.php

hPremium.php

hSanitize.php

hSearch.php

hSecurity.php

hTheme.php

hTranslations.php

hUsers.php

hUtils.php

hValidate.php

Release Notes (12)

  • Home
  • / Developer Guide
  • / Helper Functions

Helper Functions

Explore essential developer tools, helpers - built-in functions, and resources to streamline your Osclass development.

hCategories.php

The hCategories.php helper provides a set of functions for handling categories in Osclass. It allows you to retrieve the current category, obtain the list of categories as a hierarchical tree, count total categories and subcategories, and display category selection fields within forms. Functions Des... 277 words
Developer Guide
Helper Functions

hCurrency.php

The hCurrency.php helper in Osclass provides essential functions for managing currency data. It allows you to retrieve a complete list of available currencies (which is stored in the session) and to fetch detailed currency records by code. These capabilities ensure that your website can correctly di... 85 words
Developer Guide
Helper Functions

hDatabaseInfo.php

The hDatabaseInfo.php helper in Osclass provides a set of functions that allow you to retrieve important database connection information. These functions are useful when you need to display, log, or verify your database credentials in a secure manner. Functions Description osc_db_name() – Gets the d... 69 words
Developer Guide
Helper Functions

hDefines.php

The hDefines.php helper centralizes all path and URL definitions for an Osclass installation. These functions allow you to quickly retrieve paths for core components (such as libraries, themes, plugins, and uploads) and generate complete URLs for both the public website and the admin panel. Addition... 1339 words
Developer Guide
Helper Functions

hErrors.php

The hErrors.php helper provides essential error handling functions for Osclass. These functions are used to immediately stop script execution in case of critical errors and to generate absolute URLs that can be used for redirection or detailed error reporting. Functions Description osc_die($title, $... 100 words
Developer Guide
Helper Functions

hItems.php

The hItems.php helper provides a wide range of functions that return objects from the static view class in Osclass. These functions enable you to retrieve the current item, its associated comments, resources, and various meta details. They are essential for building and customizing the display of li... 1346 words
Developer Guide
Helper Functions

hLocale.php

The hLocale.php helper provides a comprehensive set of functions for managing locale settings in Osclass. It enables you to retrieve locale objects, list available locales, count and iterate over enabled locales, and access various locale-specific formatting options (like currency format, decimal po... 296 words
Developer Guide
Helper Functions

hLocation.php

The hLocation.php helper offers a comprehensive suite of functions to manage location-related data in Osclass. It allows you to retrieve the current country, region, city, and city area, iterate over lists of locations, count available locations, and obtain details such as names and URLs. Additional... 349 words
Developer Guide
Helper Functions

hMessages.php

The hMessages.php helper offers a suite of functions to manage ephemeral (flash) messages in Osclass. These functions enable you to add various types of messages — such as error, success (ok), informational, and warning — to the session. You can then retrieve and display these messages, ensuring tha... 178 words
Developer Guide
Helper Functions

hPage.php

The hPage.php helper is designed to manage static pages within Osclass. It provides functions to retrieve the current static page object, access its fields such as title, text, and metadata, and perform operations such as counting and iterating through the available static pages. Additionally, it in... 269 words
Developer Guide
Helper Functions

hPagination.php

The hPagination.php helper provides a set of functions to generate dynamic pagination links for various parts of your Osclass site, including search results, comments, and generic listings. It offers flexible configuration via an associative array of parameters, which lets you customize CSS classes,... 771 words
Developer Guide
Helper Functions

hPlugins.php

The hPlugins.php helper in Osclass offers a comprehensive set of functions that manage the plugin system. These functions allow you to run hooks and filters, add or remove custom functions, and handle plugin registration and configuration. They are essential for extending Osclass functionality witho... 290 words
Developer Guide
Helper Functions

hPreference.php

The hPreference.php helper in Osclass offers an extensive set of functions to retrieve and manage system preferences. These functions cover configuration settings such as comment behavior, user registration, image upload options, and more. They also include helpers for subdomain settings and generic... 952 words
Developer Guide
Helper Functions

hPremium.php

The hPremium.php helper provides functions that return objects from the static view class in Osclass related to premium listings. It allows you to retrieve new premium ads, obtain the current premium data, and access specific fields for single premium items. Additional helper functions facilitate it... 728 words
Developer Guide
Helper Functions

hSanitize.php

The hSanitize.php helper in Osclass offers a collection of functions to ensure that user input is clean and that output is safely escaped, preventing security issues such as XSS. These functions help normalize URLs, names, usernames, integers, and phone numbers, and also provide mechanisms to escape... 721 words
Developer Guide
Helper Functions

hSearch.php

The hSearch.php helper in Osclass is designed to facilitate all aspects of search functionality on your classifieds website. It provides functions to retrieve the search object, obtain search criteria (such as selected region, city, price range, and category), generate dynamic search URLs with updat... 1734 words
Developer Guide
Helper Functions

hSecurity.php

The hSecurity.php helper in Osclass provides a set of functions designed to enhance the security of your application. It includes utilities for generating random passwords, creating and validating CSRF tokens, checking for banned IPs or emails, encrypting and decrypting alert messages, and more. Fun... 267 words
Developer Guide
Helper Functions

hTheme.php

The hTheme helper provides a collection of functions that facilitate theme management in Osclass. These functions allow you to generate URLs for theme administration, render theme or plugin files on the front-end, and handle the enqueuing and removal of scripts and styles. Additionally, the helper i... 414 words
Developer Guide
Helper Functions

hTranslations.php

The hTranslations.php helper provides functions for translating strings and managing localization in Osclass. These functions allow you to retrieve and echo translated strings based on language files, handle plural translations depending on a numeric count, and support flash message translations. Fu... 150 words
Developer Guide
Helper Functions

hUsers.php

The hUsers.php helper provides a collection of functions for managing and retrieving user information in Osclass. These functions allow you to access specific user fields, determine login status (both for web and admin users), generate profile URLs, and work with user alerts and other utility operat... 644 words
Developer Guide
Helper Functions

hUtils.php

The hUtils.php helper contains various utility functions for Osclass, including methods for retrieving request parameters, formatting data, handling subdomains, managing widgets, and interacting with the view layer. These functions assist in streamlining development and improving site functionality.... 289 words
Developer Guide
Helper Functions

hValidate.php

The hValidate.php helper provides a collection of functions to validate various types of user input in Osclass. These functions ensure that text, numbers, URLs, emails, phone numbers, and other data meet required formats and constraints before further processing. Functions Description osc_validate_t... 340 words
Developer Guide
Helper Functions
Company

Osclass Classifieds

Osclass Market
Information Osclass Classifieds
Copyright © 2025 Osclass Classifieds All rights reserved. Powered by Osclass Classified CMS.