Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cApiAction
  • cApiActionCollection
  • cApiActionlog
  • cApiActionlogCollection
  • cApiArea
  • cApiAreaCollection
  • cApiArticle
  • cApiArticleCollection
  • cApiArticleLanguage
  • cApiArticleLanguageCollection
  • cApiArticleSpecification
  • cApiArticleSpecificationCollection
  • cApiCategory
  • cApiCategoryArticle
  • cApiCategoryArticleCollection
  • cApiCategoryCollection
  • cApiCategoryLanguage
  • cApiCategoryLanguageCollection
  • cApiCategoryTree
  • cApiCategoryTreeCollection
  • cApiClient
  • cApiClientCollection
  • cApiClientLanguage
  • cApiClientLanguageCollection
  • cApiCommunication
  • cApiCommunicationCollection
  • cApiContainer
  • cApiContainerCollection
  • cApiContainerConfiguration
  • cApiContainerConfigurationCollection
  • cApiContent
  • cApiContentCollection
  • cApiDbfs
  • cApiDbfsCollection
  • cApiFile
  • cApiFileCollection
  • cApiFileInformation
  • cApiFileInformationCollection
  • cApiFrameFile
  • cApiFrameFileCollection
  • cApiFrontendGroup
  • cApiFrontendGroupCollection
  • cApiFrontendGroupMember
  • cApiFrontendGroupMemberCollection
  • cApiFrontendPermission
  • cApiFrontendPermissionCollection
  • cApiFrontendUser
  • cApiFrontendUserCollection
  • cApiGroup
  • cApiGroupCollection
  • cApiGroupMember
  • cApiGroupMemberCollection
  • cApiGroupProperty
  • cApiGroupPropertyCollection
  • cApiInUse
  • cApiInUseCollection
  • cApiIso3166
  • cApiIso3166Collection
  • cApiIso6392
  • cApiIso6392Collection
  • cApiKeyword
  • cApiKeywordCollection
  • cApiLanguage
  • cApiLanguageCollection
  • cApiLayout
  • cApiLayoutCollection
  • cApiMailLog
  • cApiMailLogCollection
  • cApiMailLogSuccess
  • cApiMailLogSuccessCollection
  • cApiMetaTag
  • cApiMetaTagCollection
  • cApiMetaType
  • cApiMetaTypeCollection
  • cApiModule
  • cApiModuleCollection
  • cApiNavMain
  • cApiNavMainCollection
  • cApiNavSub
  • cApiNavSubCollection
  • cApiOnlineUser
  • cApiOnlineUserCollection
  • cApiPathresolveCache
  • cApiPathresolveCacheCollection
  • cApiProperty
  • cApiPropertyCollection
  • cApiRight
  • cApiRightCollection
  • cApiStat
  • cApiStatCollection
  • cApiSystemProperty
  • cApiSystemPropertyCollection
  • cApiTemplate
  • cApiTemplateCollection
  • cApiTemplateConfiguration
  • cApiTemplateConfigurationCollection
  • cApiType
  • cApiTypeCollection
  • cApiUpload
  • cApiUploadCollection
  • cApiUploadMeta
  • cApiUploadMetaCollection
  • cApiUser
  • cApiUserCollection
  • cApiUserProperty
  • cApiUserPropertyCollection
  • NoteCollection
  • NoteItem
  • TODOCollection
  • TODOItem
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cApiClient

Class cApiClient, client item

cGenericDb
Extended by cItemBaseAbstract
Extended by Item
Extended by cApiClient
Package: Core\GenericDB\Model
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Marco Jahn
Located at classes/contenido/class.client.php
Methods summary
public
# __construct( mixed $id = false )

Constructor Function

Constructor Function

Parameters

$id
mixed
$id Specifies the ID of item to load

Throws

cInvalidArgumentException
If table name or primary key is not set

Overrides

Item::__construct()
public static cApiClient
# getInstance( integer $client = false )

Static accessor to the singleton instance.

Static accessor to the singleton instance.

Parameters

$client
integer
$client

Returns

cApiClient
Reference to the singleton instance.

Todo

There is no need since caching is available at GenericDB level
public boolean
# loadByPrimaryKey( integer $idKey )

Load dataset by primary key

Load dataset by primary key

Parameters

$idKey
integer
$idKey

Returns

boolean

Overrides

Item::loadByPrimaryKey()
public boolean
# setProperty( mixed $type, mixed $name, mixed $value, mixed $idproperty = 0 )

Set client property

Set client property

Parameters

$type
mixed
$type Type of the data to store (arbitary data)
$name
mixed
$name Entry name
$value
mixed
$value Value
$idproperty
mixed
$idproperty

Returns

boolean

Todo

should return return value as overwritten method

Overrides

Item::setProperty()
public mixed
# getProperty( mixed $type, mixed $name, integer $client = 0 )

Get client property

Get client property

Parameters

$type
mixed
$type Type of the data to get
$name
mixed
$name Entry name
$client
integer
$client Client id (not used, it's declared because of PHP strict warnings)

Returns

mixed
Value

Overrides

Item::getProperty()
public
# deleteProperty( integer $idProp, string $p2 = "", integer $client = 0 )

Delete client property

Delete client property

Parameters

$idProp
integer
$idProp Id of property
$p2
string
$p2 Not used, is here to prevent PHP Strict warnings
$client
integer
$client Client id (not used, it's declared because of PHP strict warnings)

Overrides

Item::deleteProperty()
public array
# getPropertiesByType( mixed $type )

Get client properties by type

Get client properties by type

Parameters

$type
mixed
$type Type of the data to get

Returns

array
Assoziative array
public array
# getProperties( )

Get all client properties

Get all client properties

Returns

array
false array

Todo

return value should be the same as getPropertiesByType(), e.g. an empty array instead of false
public boolean
# hasLanguages( )

Check if client has at least one language

Check if client has at least one language

Returns

boolean
public boolean
# setField( string $name, mixed $value, boolean $bSafe = true )

Userdefined setter for client fields.

Userdefined setter for client fields.

Parameters

$name
string
$name
$value
mixed
$value
$bSafe
boolean
$bSafe Flag to run defined inFilter on passed value

Returns

boolean

Todo

should return return value of overloaded method

Overrides

Item::setField()
protected cApiPropertyCollection
# _getPropertiesCollectionInstance( integer $client = 0 )

Lazy instantiation and return of properties object

Lazy instantiation and return of properties object

Parameters

$client
integer
$client Client id (not used, it's declared because of PHP strict warnings)

Returns

cApiPropertyCollection

Overrides

cItemBaseAbstract::_getPropertiesCollectionInstance()
Methods inherited from Item
_inFilter(), _loadByWhereClause(), _onLoad(), _outFilter(), _setMetaObject(), deletePropertyById(), get(), getField(), getMetaObject(), isLoaded(), loadBy(), loadByMany(), loadByRecordSet(), set(), setFilters(), store(), toArray(), toObject()
Methods inherited from cItemBaseAbstract
_getSecondDBInstance(), escape()
Methods inherited from cGenericDb
_executeCallbacks(), register(), unregister()
Constants inherited from cGenericDb
CREATE_BEFORE, CREATE_FAILURE, CREATE_SUCCESS, DELETE_BEFORE, DELETE_FAILURE, DELETE_SUCCESS, STORE_BEFORE, STORE_FAILURE, STORE_SUCCESS
Properties summary
public integer $idclient
#
protected cApiPropertyCollection $_oPropertyCollection
#

Property collection instance

Property collection instance

Properties inherited from Item
$_arrInFilters, $_arrOutFilters, $_lastSQL, $_metaObject, $modifiedValues, $oldPrimaryKey, $values
Properties inherited from cItemBaseAbstract
$_className, $_oCache, $_settings, $db, $lasterror, $primaryKey, $properties, $secondDb, $table, $virgin
CMS CONTENIDO 4.9.1 API documentation generated by ApiGen 2.8.0