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
 1: <?php
 2: /**
 3:  * This file contains the actionlog collection and item class.
 4:  *
 5:  * @package          Core
 6:  * @subpackage       GenericDB_Model
 7:  * @version          SVN Revision $Rev:$
 8:  *
 9:  * @author           Murat Purc <murat@purc.de>
10:  * @copyright        four for business AG <www.4fb.de>
11:  * @license          http://www.contenido.org/license/LIZENZ.txt
12:  * @link             http://www.4fb.de
13:  * @link             http://www.contenido.org
14:  */
15: 
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17: 
18: /**
19:  * Actionlog collection
20:  *
21:  * @package    Core
22:  * @subpackage GenericDB_Model
23:  */
24: class cApiActionlogCollection extends ItemCollection {
25: 
26:     /**
27:      * Constructor
28:      */
29:     public function __construct() {
30:         global $cfg;
31:         parent::__construct($cfg['tab']['actionlog'], 'idlog');
32:         $this->_setItemClass('cApiActionlog');
33: 
34:         // set the join partners so that joins can be used via link() method
35:         $this->_setJoinPartner('cApiUserCollection');
36:         $this->_setJoinPartner('cApiClientCollection');
37:         $this->_setJoinPartner('cApiLanguageCollection');
38:         $this->_setJoinPartner('cApiActionCollection');
39:         $this->_setJoinPartner('cApiCategoryArticleCollection');
40:     }
41: 
42:     /**
43:      * Creates a actionlog item entry
44:      *
45:      * @param string $userId User id
46:      * @param int    $idclient
47:      * @param int    $idlang
48:      * @param int    $idaction
49:      * @param int    $idcatart
50:      * @param string $logtimestamp
51:      *
52:      * @return cApiActionlog
53:      */
54:     public function create($userId, $idclient, $idlang, $idaction, $idcatart, $logtimestamp = '') {
55:         $item = parent::createNewItem();
56: 
57:         if (empty($logtimestamp)) {
58:             $logtimestamp = date('Y-m-d H:i:s');
59:         }
60: 
61:         $item->set('user_id', $this->escape($userId));
62:         $item->set('idclient', (int)$idclient);
63:         $item->set('idlang', (int)$idlang);
64:         $item->set('idaction', (int)$idaction);
65:         $item->set('idcatart', (int)$idcatart);
66:         $item->set('logtimestamp', $this->escape($logtimestamp));
67: 
68:         $item->store();
69: 
70:         return $item;
71:     }
72: 
73: }
74: 
75: /**
76:  * Actionlog item
77:  *
78:  * @package    Core
79:  * @subpackage GenericDB_Model
80:  */
81: class cApiActionlog extends Item {
82: 
83:     /**
84:      * Constructor Function
85:      *
86:      * @param mixed $mId Specifies the ID of item to load
87:      */
88:     public function __construct($mId = false) {
89:         global $cfg;
90:         parent::__construct($cfg['tab']['actionlog'], 'idlog');
91:         $this->setFilters(array(), array());
92:         if ($mId !== false) {
93:             $this->loadByPrimaryKey($mId);
94:         }
95:     }
96: }
97: 
CMS CONTENIDO 4.9.1 API documentation generated by ApiGen 2.8.0