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 ModuleClientMeta

Module Client Meta

Allows read/write data containing module or module row specific data for a particular client.

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

Methods summary

public
# set( integer $client_id, integer $module_id, integer $module_row_id = 0, array $fields = array() )

Add or update module meta data for a particular client and module

Add or update module meta data for a particular client and module

Parameters

$client_id
integer
$client_id The ID of the client to set data for
$module_id
integer
$module_id The ID of the module
$module_row_id
integer
$module_row_id The ID of the module row (if necessary)
$fields
array
$fields A numerically indexed array of arrays, each containing: - key The key to set - value The value to set - encrypted True to encrypt $value, false to store unencrypted, null to encrypt if currently set to encrypt (default null)
public mixed
# get( integer $client_id, string $key, integer $module_id, integer $module_row_id = 0 )

Fetch a specific meta field

Fetch a specific meta field

Parameters

$client_id
integer
$client_id The ID of the client to fetch on
$key
string
$key The key to fetch
$module_id
integer
$module_id The ID of the module
$module_row_id
integer
$module_row_id The ID of the module row (if necessary)

Returns

mixed
A stdClass object representing the meta field, false if no such field exists
public array
# getAll( integer $client_id, integer $module_id, integer $module_row_id = 0 )

Fetches all meta fields for a client

Fetches all meta fields for a client

Parameters

$client_id
integer
$client_id The ID of the client to fetch on
$module_id
integer
$module_id The ID of the module
$module_row_id
integer
$module_row_id The ID of the module row (if necessary)

Returns

array
An array of stdClass objects, each representing a meta field
public
# delete( integer $client_id, string $key, integer $module_id, integer $module_row_id = 0 )

Delete a specific entry for a client and module

Delete a specific entry for a client and module

Parameters

$client_id
integer
$client_id The ID of the client
$key
string
$key The key to delete
$module_id
integer
$module_id The ID of the module
$module_row_id
integer
$module_row_id The ID of the module row (if necessary)
public
# deleteAll( integer $client_id, integer $module_id, integer $module_row_id = 0 )

Deletes all meta fields for a client and module

Deletes all meta fields for a client and module

Parameters

$client_id
integer
$client_id The ID of the client
$module_id
integer
$module_id The ID of the module
$module_row_id
integer
$module_row_id The ID of the module row (if necessary)

Methods inherited from AppModel

_(), __construct(), 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