[ Index ] |
|
Code source de CMS made simple 1.0.5 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 1763 lignes (42 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
ContentBase:: (87 méthodes):
ContentBase()
SetInitialValues()
SetProperties()
Id()
SetId()
FriendlyName()
Name()
SetName()
Alias()
Type()
SetType()
Owner()
SetOwner()
Metadata()
SetMetadata()
TabIndex()
SetTabIndex()
TitleAttribute()
GetCreationDate()
GetModifiedDate()
SetTitleAttribute()
AccessKey()
SetAccessKey()
ParentId()
SetParentId()
OldParentId()
SetOldParentId()
TemplateId()
SetTemplateId()
ItemOrder()
SetItemOrder()
OldItemOrder()
SetOldItemOrder()
Hierarchy()
SetHierarchy()
IdHierarchy()
SetIdHierarchy()
HierarchyPath()
SetHierarchyPath()
Active()
SetActive()
ShowInMenu()
SetShowInMenu()
DefaultContent()
SetDefaultContent()
Cachable()
SetCachable()
Markup()
SetMarkup()
LastModifiedBy()
SetLastModifiedBy()
SetAlias()
MenuText()
SetMenuText()
ChildCount()
Properties()
HasProperty()
GetPropertyValue()
SetPropertyValue()
WantsChildren()
GetAdditionalContentBlocks()
HasUsableLink()
ReadyForEdit()
DoReadyForEdit()
LoadFromId()
LoadFromData()
Load()
Save()
Update()
Insert()
ValidateData()
Delete()
FillParams()
GetURL()
Show()
ContentPreRender()
GetTabDefinitions()
TabNames()
EditAsArray()
Edit()
AdvancedEdit()
Help()
HasChildren()
GetAdditionalEditors()
SetAdditionalEditors()
ShowAdditionalEditors()
IsDefaultPossible()
ContentProperties:: (11 méthodes):
ContentProperties()
SetInitialValues()
HasProperty()
Add()
GetValue()
SetValue()
Load()
Save()
Delete()
SetAllowedPropertyNames()
GetAllowedPropertyNames()
CMSModuleContentType:: (3 méthodes):
ModuleName()
Lang()
GetModuleInstance()
Classe: ContentBase - X-Ref
Generic content class.ContentBase() X-Ref |
Generic constructor. Runs the SetInitialValues fuction. |
SetInitialValues() X-Ref |
Sets object to some sane initial values |
SetProperties() X-Ref |
Subclasses should override this to set their property types using a lot of mProperties.Add statements |
Id() X-Ref |
Returns the ID |
SetId($id) X-Ref |
Pas de description |
FriendlyName() X-Ref |
Returns a friendly name for this content type |
Name() X-Ref |
Returns the Name |
SetName($name) X-Ref |
Pas de description |
Alias() X-Ref |
Returns the Alias |
Type() X-Ref |
Returns the Type |
SetType($type) X-Ref |
Pas de description |
Owner() X-Ref |
Returns the Owner |
SetOwner($owner) X-Ref |
Pas de description |
Metadata() X-Ref |
Returns the Metadata |
SetMetadata($metadata) X-Ref |
Pas de description |
TabIndex() X-Ref |
Pas de description |
SetTabIndex($tabindex) X-Ref |
Pas de description |
TitleAttribute() X-Ref |
Pas de description |
GetCreationDate() X-Ref |
Pas de description |
GetModifiedDate() X-Ref |
Pas de description |
SetTitleAttribute($titleattribute) X-Ref |
Pas de description |
AccessKey() X-Ref |
Pas de description |
SetAccessKey($accesskey) X-Ref |
Pas de description |
ParentId() X-Ref |
Returns the ParentId |
SetParentId($parentid) X-Ref |
Pas de description |
OldParentId() X-Ref |
Pas de description |
SetOldParentId($parentid) X-Ref |
Pas de description |
TemplateId() X-Ref |
Pas de description |
SetTemplateId($templateid) X-Ref |
Pas de description |
ItemOrder() X-Ref |
Returns the ItemOrder |
SetItemOrder($itemorder) X-Ref |
Pas de description |
OldItemOrder() X-Ref |
Pas de description |
SetOldItemOrder($itemorder) X-Ref |
Pas de description |
Hierarchy() X-Ref |
Returns the Hierarchy |
SetHierarchy($hierarchy) X-Ref |
Pas de description |
IdHierarchy() X-Ref |
Returns the Hierarchy |
SetIdHierarchy($idhierarchy) X-Ref |
Pas de description |
HierarchyPath() X-Ref |
Returns the Hierarchy |
SetHierarchyPath($hierarchypath) X-Ref |
Pas de description |
Active() X-Ref |
Returns the Active state |
SetActive($active) X-Ref |
Pas de description |
ShowInMenu() X-Ref |
Returns whether it should show in the menu |
SetShowInMenu($showinmenu) X-Ref |
Pas de description |
DefaultContent() X-Ref |
Returns if the page is the default |
SetDefaultContent($defaultcontent) X-Ref |
Pas de description |
Cachable() X-Ref |
Pas de description |
SetCachable($cachable) X-Ref |
Pas de description |
Markup() X-Ref |
Pas de description |
SetMarkup($markup) X-Ref |
Pas de description |
LastModifiedBy() X-Ref |
Pas de description |
SetLastModifiedBy($lastmodifiedby) X-Ref |
Pas de description |
SetAlias($alias) X-Ref |
Pas de description |
MenuText() X-Ref |
Returns the menu text for this content |
SetMenuText($menutext) X-Ref |
Pas de description |
ChildCount() X-Ref |
Returns number of immediate child-content items of this content |
Properties() X-Ref |
Returns the properties |
HasProperty($name) X-Ref |
Pas de description |
GetPropertyValue($name) X-Ref |
Pas de description |
SetPropertyValue($name, $value) X-Ref |
Pas de description |
WantsChildren() X-Ref |
Function content types to use to say whether or not they should show up in lists where parents of content are set. This will default to true, but should be used in cases like Separator where you don't want it to have any children. |
GetAdditionalContentBlocks() X-Ref |
Pas de description |
HasUsableLink() X-Ref |
Should this link be used in various places where a link is the only useful output? (Like next/previous links in cms_selflink, for example) |
ReadyForEdit() X-Ref |
This is a callback function to handle any things that might need to be done before content is edited. |
DoReadyForEdit() X-Ref |
Pas de description |
LoadFromId($id, $loadProperties = false) X-Ref |
Load the content of the object from an ID returns: bool If it fails, the object comes back to initial values and returns FALSE param: $id the ID of the element param: $loadProperties whether to load or not the properties |
LoadFromData($data, $loadProperties = false) X-Ref |
Load the content of the object from an array There is no check on the data provided, because this is the job of ValidateData returns: bool If it fails, the object comes back to initial values and returns FALSE |
Load() X-Ref |
Callback function for content types to use to preload content or other things if necessary. This is called right after the properties are loaded. |
Save() X-Ref |
Save or update the content |
Update() X-Ref |
Update the content We can notice, that only a few things are updated We do not care about hierarchy for example. This is because hierarchy, order or parents management is the job of the content manager. Remember that a content is like a file, and a file don't know where it is on the disk, it only knows its own content. It's the same here. |
Insert() X-Ref |
Pas de description |
ValidateData() X-Ref |
Test if the array given contains valid data for the object This function is used to check that no compulsory argument has been forgotten by the user We do not check the Id because there can be no Id (new content) That's up to Save to check this. returns: FALSE if data is ok, and an array of invalid parameters else |
Delete() X-Ref |
Delete the content |
FillParams($params) X-Ref |
Function for the subclass to parse out data for it's parameters (usually from $_POST) |
GetURL($rewrite = true) X-Ref |
Function for content types to override to set their proper generated URL |
Show($param = '') X-Ref |
Show the content |
ContentPreRender($tpl_source) X-Ref |
allow the content module to handle custom tags. Typically used for parameters in {content} tags |
GetTabDefinitions() X-Ref |
Returns a list of tab names that should be used when adding or editing this type of content |
TabNames() X-Ref |
Returns the tab names used in the add and edit content page. If it's an empty array, then the tabs won't show at all. |
EditAsArray($adding = false, $tab = 0, $showadmin = false) X-Ref |
Show the Alternate Edit interface |
Edit($adding = false, $tab = 0, $showadmin = false) X-Ref |
Show the Edit interface |
AdvancedEdit($adding = false) X-Ref |
Show the Advanced Edit interface |
Help() X-Ref |
Show Help |
HasChildren() X-Ref |
Does this have children? |
GetAdditionalEditors() X-Ref |
Pas de description |
SetAdditionalEditors($editorarray) X-Ref |
Pas de description |
ShowAdditionalEditors() X-Ref |
Pas de description |
IsDefaultPossible() X-Ref |
Pas de description |
Classe: ContentProperties - X-Ref
Class to represent content properties. These are pretty muchContentProperties() X-Ref |
Generic constructor. Runs the SetInitialValues fuction. |
SetInitialValues() X-Ref |
Sets object to some sane initial values |
HasProperty($name) X-Ref |
Pas de description |
Add($type, $name, $defaultvalue='') X-Ref |
Pas de description |
GetValue($name) X-Ref |
Pas de description |
SetValue($name, $value) X-Ref |
Pas de description |
Load($content_id) X-Ref |
Pas de description |
Save($content_id) X-Ref |
Pas de description |
Delete($content_id) X-Ref |
Pas de description |
SetAllowedPropertyNames($array) X-Ref |
Subclasses should fill this array with strings containing the name of the allowed property param: array |
GetAllowedPropertyNames() X-Ref |
Subclasses should fill this array with strings containing the name of the allowed property return: array |
Classe: CMSModuleContentType - X-Ref
Class that module defined content types must extend.ModuleName() X-Ref |
Pas de description |
Lang($name, $params=array() X-Ref |
Pas de description |
GetModuleInstance() X-Ref |
Pas de description |
Généré le : Tue Apr 3 18:50:37 2007 | par Balluche grâce à PHPXref 0.7 |