bigace.classes.item
[ class tree: bigace.classes.item ] [ index: bigace.classes.item ] [ all elements ]

Class: ItemAdminService

Source Location: /classes/item/ItemAdminService.php

Class Overview

MasterItemType
   |
   --Itemtype
      |
      --ItemAdminService

The ItemAdminService provides services for Items inside BIGACE.


Variables

Methods


Child classes:

FileAdminService
The FileAdminService provides all kind of writing services for Files inside BIGACE.
ImageAdminService
The ImageAdminService provides all kind of writing services for Images inside BIGACE.
MenuAdminService
Class used for administrating BIGACE "Menu" Items

Inherited Constants

Inherited Variables

Inherited Methods


Class Details

[line 38]
The ItemAdminService provides services for Items inside BIGACE.



[ Top ]


Class Variables

$projectService =  NULL

[line 41]


Type:   mixed


[ Top ]



Class Methods


constructor ItemAdminService [line 43]

ItemAdminService ItemAdminService( mixed $itemtype)



[ Top ]

method addCategoryLink [line 231]

void addCategoryLink( mixed $itemid, mixed $categoryid)



[ Top ]

method buildInitialFilename [line 562]

void buildInitialFilename( mixed $extension)

Build a Filename that can be used for new Items or Language Versions



[ Top ]

method changeFile [line 339]

void changeFile( mixed $values)

Changes an existing File in the System.

THIS METHOD CREATES A DATABASE BACKUP!




[ Top ]

method changeItem [line 352]

void changeItem( mixed $id, mixed $languageid, mixed $data)

Changes an existing File in the System.

THIS METHOD CREATES A DATABASE BACKUP!




[ Top ]

method createItem [line 489]

void createItem( mixed $data)

Inserts a brand new Item into the System.

THIS ONLY INSERTS THE DATABASE ENTRY. IF YOU NEED A FILESYSTEM ENTRY YOU HAVE TO CREATE IT FIRST AND SUBMIT ITS NAME WITHIN THE PASSED ARRAY.




[ Top ]

method createLanguageVersion [line 517]

void createLanguageVersion( mixed $id, mixed $copyLangID, mixed $data)

Creates a NEW language for the given Item.

Copies the settings from the given Language Version of this Item if they are not passed.




[ Top ]

method deleteAllProjectNum [line 277]

void deleteAllProjectNum( mixed $id, mixed $langid)



[ Top ]

method deleteAllProjectText [line 287]

void deleteAllProjectText( mixed $id, mixed $langid)



[ Top ]

method deleteItem [line 208]

void deleteItem( mixed $id)

Deletes an Item from BIGACE, including all Language Versions, its rights and categorys.



[ Top ]

method deleteItemLanguage [line 70]

-1 deleteItemLanguage( mixed $id, mixed $langid)



Tags:

return:  if item was completely removed, true if language version was deleted, false if nothing was performed, -2 if last language version has childs


[ Top ]

method getMaxPositionForParentID [line 358]

void getMaxPositionForParentID( mixed $parentid, mixed $languageid)



[ Top ]

method initItemAdminService [line 48]

void initItemAdminService( mixed $itemtype)



[ Top ]

method initProjectService [line 53]

void initProjectService( )



[ Top ]

method isAllowed [line 63]

void isAllowed( mixed $file)

Has to be overriden by any implementing class!

Should check the File Extension and decide whether this Mimetype is supported or not!




Overridden in child classes as:

FileAdminService::isAllowed()
ImageAdminService::isAllowed()
MenuAdminService::isAllowed()

[ Top ]

method lowerPosition [line 168]

void lowerPosition( mixed $id, mixed $langid)

Tries to lower the Items position.



[ Top ]

method moveItem [line 266]

void moveItem( mixed $itemid, mixed $newParentID)



[ Top ]

method raisePosition [line 127]

void raisePosition( mixed $id, mixed $langid)

Tries to raise the position for this Item.



[ Top ]

method registerUploadedFile [line 445]

Array registerUploadedFile( Array $file, Array $data)

Registers a Image within BIGACE that was posted to the system.



Tags:

return:  the result for this upload ("result", "message")


Parameters:

Array   $file   original file information ("file", "type", "name", "size")
Array   $data   information to register file within bigace ("name", "description")

[ Top ]

method removeAllCategoryLinks [line 255]

void removeAllCategoryLinks( mixed $itemid)



[ Top ]

method removeCategoryLink [line 243]

void removeCategoryLink( mixed $itemid, mixed $categoryid)



[ Top ]

method setProjectNum [line 297]

void setProjectNum( mixed $id, mixed $langid, mixed $key, mixed $value)



[ Top ]

method setProjectText [line 309]

void setProjectText( mixed $id, mixed $langid, mixed $key, mixed $value)



[ Top ]

method updateContent [line 381]

void updateContent( mixed $id, mixed $langid, mixed $content, [mixed $data = array()])

Updates the Content in the File that is fetched from Item->getFullURL().

If the file does not exists it will simply create it.

THIS METHOD CREATES A FILESYSTEM AND A DATABASE BACKUP!




[ Top ]

method updateItemWithUpload [line 397]

void updateItemWithUpload( mixed $id, mixed $file, mixed $languageID)

Updates the given Items Content with the last uploaded File.

THIS METHOD CREATES A FILESYSTEM AND A DATABASE BACKUP!




[ Top ]

method _changeItem [line 695]

void _changeItem( mixed $id, mixed $langid, mixed $values)

Executes an Update on the given Item.



[ Top ]

method _changeItemWithTimestamp [line 703]

void _changeItemWithTimestamp( mixed $id, mixed $langid, mixed $values, mixed $timestamp)

Executes an Update on the given Item.



[ Top ]

method _createContentHistoryVersion [line 575]

void _createContentHistoryVersion( mixed $id, mixed $langid)

Creates a History version for the linked File and returns the Last Modified Timestamp.

With that you are always able to create the full qulified History Filename.




[ Top ]

method _createDatabaseHistoryVersion [line 611]

void _createDatabaseHistoryVersion( mixed $id, mixed $langid)

Creates a full backup of the given Version and returns the new Filename.



[ Top ]

method _createFullHistoryVersion [line 625]

void _createFullHistoryVersion( mixed $id, mixed $langid)

Creates a full backup of the given Version and returns the new Filename.



[ Top ]

method _createProjectValue [line 321]

void _createProjectValue( mixed $file, mixed $id, mixed $langid, mixed $key, mixed $value)



[ Top ]

method _deleteItemLanguage [line 101]

void _deleteItemLanguage( mixed $id, mixed $langid)

Deletes the Items Languae Versions, all Backups and all depenend Project Values.



[ Top ]

method _insertItem [line 647]

void _insertItem( mixed $data, mixed $newid)

Inserts a new Item into the Database.

Sets modifiedby, modifiedts and position automatically.




[ Top ]

method _prepareSqlValues [line 715]

void _prepareSqlValues( mixed $id, mixed $langid, [mixed $values = array()])



[ Top ]

method _saveContent [line 750]

void _saveContent( mixed $filename, mixed $content)

Saves the Content to the given File, by replacing the old File content.



[ Top ]

method _updateDatabaseHistoryVersion [line 596]

void _updateDatabaseHistoryVersion( mixed $id, mixed $langid, mixed $modifieddate, mixed $values)

Creates a full backup of the given Version and returns the new Filename.



[ Top ]


Documentation generated on Tue, 11 Oct 2005 23:02:09 +0200 by phpDocumentor 1.3.0RC2