Overview

Packages

  • blesta
    • app
      • controllers
      • models
    • components
      • auth
        • ldap
        • motp
        • oath
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • events
      • exchange
        • rates
          • currency
            • layer
          • fixer
          • open
            • exchange
              • rates
          • x
            • rates
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
          • perforated
            • invoice
          • quickbooks
            • invoice
          • templates
            • default
      • modules
      • net
        • amazon
          • s3
        • http
        • net
          • geo
            • ip
      • plugins
      • reports
        • aging
          • invoices
        • client
          • data
            • portability
        • custom
          • report
        • invoice
          • creation
        • package
          • revenue
        • tax
          • liability
        • transactions
          • applied
          • received
      • security
      • session
        • cart
      • settingscollection
      • upgrades
        • tasks
      • upload
      • vcard
    • core
      • Automation
        • Tasks
          • Common
          • Task
        • Type
          • Common
          • Cron
      • Pricing
        • ItemComparator
        • MetaItem
        • Modifier
          • Type
            • Description
              • Type
                • Discount
                • Option
                • Service
                • Tax
            • Discount
            • Price
            • Proration
        • Presenter
          • Build
            • Invoice
            • InvoiceData
            • Options
            • Service
            • ServiceChange
            • ServiceData
          • Collection
          • Format
            • Fields
            • Type
              • Discount
              • Item
              • Option
              • Options
              • Package
              • Pricing
              • Service
              • Tax
          • Items
            • Invoice
            • Service
          • Type
      • ServiceProviders
      • Util
        • Captcha
          • Captchas
          • Common
        • Common
          • Traits
        • Events
          • Common
          • Handlers
          • Observers
        • Filters
          • Common
        • GeoIp
        • Input
          • Fields
            • Common
        • Tax
        • Widgets
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
      • widget
        • client
  • minPHP
    • helpers
      • color
      • data
        • structure
  • None
  • PHP

Classes

  • Accounts
  • Actions
  • ApiKeys
  • Backup
  • CalendarEvents
  • ClientGroups
  • Clients
  • Companies
  • Contacts
  • Countries
  • Coupons
  • CouponTerms
  • CronTasks
  • Currencies
  • EmailGroups
  • Emails
  • EmailVerifications
  • Encryption
  • GatewayManager
  • Invoices
  • InvoiceTemplateManager
  • Languages
  • Logs
  • Marketplace
  • MessageGroups
  • Messages
  • MessengerManager
  • ModuleClientMeta
  • ModuleManager
  • ModuleTypes
  • Navigation
  • PackageGroups
  • PackageOptionGroups
  • PackageOptions
  • Packages
  • Payments
  • Permissions
  • PluginManager
  • Pricings
  • ReportManager
  • ServiceChanges
  • ServiceInvoices
  • Services
  • Settings
  • Staff
  • StaffGroups
  • States
  • SystemEvents
  • Taxes
  • Themes
  • Transactions
  • Users
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class ModuleClientMeta

Module Client Meta

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

Model
Extended by AppModel uses Blesta\Core\Util\Common\Traits\Container
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 = [] )

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
The ID of the client to set data for
$module_id
The ID of the module
$module_row_id
The ID of the module row (if necessary)
$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
The ID of the client to fetch on
$key
The key to fetch
$module_id
The ID of the module
$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
The ID of the client to fetch on
$module_id
The ID of the module
$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
The ID of the client
$key
The key to delete
$module_id
The ID of the module
$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
The ID of the client
$module_id
The ID of the module
$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 used from Blesta\Core\Util\Common\Traits\Container
getFromContainer()
Properties inherited from AppModel
$logger, $replacement_keys
Blesta API documentation generated by ApiGen