Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • controllers
      • models
    • components
      • areyouahuman
      • auth
        • motp
        • oath
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • events
        • default
      • exchange
        • rates
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
          • quickbooks
            • invoice
      • json
      • modules
      • net
        • amazon
          • s3
        • http
        • net
          • geo
            • ip
      • plugins
      • recaptcha
      • reports
        • aging
          • invoices
        • custom
          • report
        • invoice
          • creation
        • tax
          • liability
        • transactions
          • applied
          • received
      • security
      • session
        • cart
      • settingscollection
      • upgrades
        • tasks
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
      • widget
        • client
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • form
      • html
      • javascript
      • xml
    • lib
  • None
  • PHP

Classes

  • Accounts
  • ApiKeys
  • CalendarEvents
  • ClientGroups
  • Clients
  • Companies
  • Contacts
  • Countries
  • Coupons
  • CronTasks
  • Currencies
  • EmailGroups
  • Emails
  • Encryption
  • GatewayManager
  • Invoices
  • InvoiceTemplateManager
  • Languages
  • Logs
  • Marketplace
  • ModuleClientMeta
  • ModuleManager
  • Navigation
  • PackageGroups
  • PackageOptionGroups
  • PackageOptions
  • Packages
  • Payments
  • Permissions
  • PluginManager
  • Pricings
  • ReportManager
  • ServiceChanges
  • Services
  • Settings
  • Staff
  • StaffGroups
  • States
  • Taxes
  • Themes
  • Transactions
  • Users

Class Navigation

Handles navigation.

Model
Extended by AppModel
Extended by Navigation
Package: blesta\app\models
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at app/models/navigation.php

Methods summary

public
# __construct( )

Initialize Navigation

Initialize Navigation

Overrides

AppModel::__construct
public array
# getPrimary( string $base_uri )

Retrieves the primary navigation

Retrieves the primary navigation

Parameters

$base_uri
string
$base_uri The base_uri for the currently logged in user

Returns

array
An array of main navigation elements in key/value pairs where each key is the URI and each value is an array representing that element including: - name The name of the link - active True if the element is active - sub An array of subnav elements (optional) following the same indexes as above
public array
# getPrimaryClient( string $base_uri )

Retrieves the primary navigation for the client interface

Retrieves the primary navigation for the client interface

Parameters

$base_uri
string
$base_uri The base_uri for the currently logged in user

Returns

array
An array of main navigation elements in key/value pairs where each key is the URI and each value is an array representing that element including: - name The name of the link - active True if the element is active - sub An array of subnav elements (optional) following the same indexes as above
public array
# getCompany( string $base_uri )

Retrieves the navigation for company settings

Retrieves the navigation for company settings

Parameters

$base_uri
string
$base_uri The base_uri for the currently logged in user

Returns

array
A numerically-indexed array of the company settings navigation where each element contains an array which includes: - name The name of the element - class The CSS class name for the element - uri The URI for the element - children An array of child elements which follow the same indexes as above
public array
# getSystem( string $base_uri )

Retrieves the navigation for system settings

Retrieves the navigation for system settings

Parameters

$base_uri
string
$base_uri The base_uri for the currently logged in user

Returns

array
A numerically-indexed array of the system settings navigation where each element contains an array which includes: - name The name of the element - class The CSS class name for the element - uri The URI for the element - children An array of child elements which follow the same indexes as above
public array
# getSearchOptions( string $base_uri = null )

Fetches all search options available to the current company

Fetches all search options available to the current company

Parameters

$base_uri
string
$base_uri The base_uri for the currently logged in user

Returns

array
An array of search items in key/value pairs, where each key is the search type and each value is the language for the search type
public array
# getPluginNav( string $location )

Returns all plugin navigation for the requested location

Returns all plugin navigation for the requested location

Parameters

$location
string
$location The location to fetch plugin navigation for

Returns

array
An array of plugin navigation

Methods inherited from AppModel

_(), boolToInt(), currencyToDecimal(), dateToUtc(), errors(), getPerPage(), ifSet(), loadCrypto(), setDefaultIfEmpty(), setPerPage(), setRulesIfSet(), strToBool(), systemDecrypt(), systemEncrypt(), systemHash(), truncateDecimal(), validateExists(), validateStateCountry()

Methods inherited from Model

affectedRows(), begin(), commit(), getConnection(), lastInsertId(), makeDSN(), prepare(), query(), rollBack(), setAttribute(), setFetchMode()

Magic methods summary

Properties summary

Properties inherited from AppModel

$replacement_keys

Blesta API documentation generated by ApiGen 2.8.0