GalleryStatus create(
int
$parentId, string
$pathComponent, [boolean
$isDirectory = false]
)
|
|
Create a new instance of this FileSystemEntity in the persistent store.
Let the parent do its work, then add any initialization specific to this class.
Parameters:
int |
$parentId: |
the id of the parent GalleryChildEntity |
string |
$pathComponent: |
the path component of this entity |
boolean |
$isDirectory: |
(optional) Used for legal path component characters. Defaults to false. |
API Tags:
Redefinition of:
- GalleryChildEntity::create()
- Create this item in our persistent store
Redefined in descendants as:
void createLink(
$entity,
$parentId
)
|
|
Parameters:
API Tags:
See: | GalleryEntity::createLink |
Redefinition of:
- GalleryChildEntity::createLink()
Redefined in descendants as:
Create a new root level instance of this FileSystemEntity in the persistent store.
Let the parent do its work, then add any initialization specific to this class.
API Tags:
Redefinition of:
- GalleryChildEntity::createRoot()
- Create a root level item.
Redefined in descendants as:
Delete this GalleryFileSystemEntity
API Tags:
Redefinition of:
- GalleryEntity::delete()
- Delete this GalleryEntity
Redefined in descendants as:
array fetchContainerPath(
)
|
|
Return a path for any objects contained within this one (ie, children)
Subclasses should specify their container-ness by overloading isContainer()
API Tags:
Return: | GalleryStatus a status code, string a path where children can store their data files |
array fetchLogicalPath(
)
|
|
Return the logical path to this item. Note that this path is only valid as long as the entire tree is at least read locked.
API Tags:
Return: | GalleryStatus a status code, array path component names |
Redefined in descendants as:
Return the full path of this item. Note that this path is only valid as long as the entire tree is at least read locked.
API Tags:
Return: | a GalleryStatus status, string a path |
Redefined in descendants as:
Can this item contain other file system items?
Redefined in descendants as:
Move item to a new parent
Parameters:
int |
$newParentId: |
the id of the new parent GalleryItem |
API Tags:
Information Tags:
Todo: | Make sure that 'order' stuff is maintained, so that the moved items become the last in order in the new album if that album is marked as unordered |
Redefinition of:
- GalleryChildEntity::move()
- Move this item to a new parent
Redefined in descendants as:
Rename this item
Parameters:
string |
$newPathComponent: |
the path component |
API Tags:
Redefined in descendants as:
void setPathComponent(
$pathComponent
)
|
|
Parameters: