protector
[ class tree: protector ] [ index: protector ] [ all elements ]

Class: LibertyProtector

Source Location: /protector/LibertyProtector.php

Class Overview

BitBase
   |
   --LibertyBase
      |
      --LibertyProtector

Protector class to illustrate best practices when creating a new bitweaver package that builds on core bitweaver functionality, such as the Liberty CMS engine


Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: LibertyBase

LibertyBase::__construct()
Constructor building on BitBase object
LibertyBase::getLibertyClass()
given a content_type_guid this will return an object of the proper type
LibertyBase::getLibertyObject()
Given a content_id, this will return and object of the proper type
LibertyBase::getNewObject()
Simple method to create a given class with a specified content_id. The purpose of a method is to allow for derived classes to override as necessary.
LibertyBase::getNewObjectById()
Simple method to create a given class with a specified primary_id. The purpose of a method is to allow for derived classes to override as necessary.

Class: BitBase

BitBase::BitBase()
During initialisation, we assign a name which is used by the class.
BitBase::__construct()
BitBase::clearFromCache()
BitBase::expunge()
Delete content object and all related records
BitBase::load()
BitBase::__destruct()

Class Details

[line 20]
Protector class to illustrate best practices when creating a new bitweaver package that builds on core bitweaver functionality, such as the Liberty CMS engine



[ Top ]


Class Methods


constructor __construct [line 24]

LibertyProtector __construct( [ $pContentId = NULL])

During initialisation, be sure to call our base constructors



Overrides LibertyBase::__construct() (Constructor building on BitBase object)

Parameters:

   $pContentId  

[ Top ]

method expunge [line 58]

void expunge( [ $ContentId = NULL], object $pContent)

Delete entry(ies) from liberty_content_role_map table with content_id.



Overrides BitBase::expunge() (Delete content object and all related records)

Parameters:

object   $pContent  
   $ContentId  

[ Top ]

method getProtectionList [line 70]

liberty_content_role_map getProtectionList( [ $ContentId = NULL])



Tags:

return:  for selected content_id Ret -1 for anonymouse if alternatives are not stored


Parameters:

   $ContentId  

[ Top ]

method storeProtection [line 36]

void storeProtection( &$pParamHash, object $pParamHash)

Update the liberty_content_role_map table with corrected role_id(s).

In -1 for anonymouse is not stored, switching content to anonymouse will clear array




Parameters:

object   $pParamHash  
   &$pParamHash  

[ Top ]


Documentation generated on Wed, 29 Jul 2015 13:56:56 +0000 by phpDocumentor 1.5.0-lsces