Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
FileSystemContentSource Class Reference
Inheritance diagram for FileSystemContentSource:
ContentSource

Public Member Functions

 getRequestedAttributes ()
 init ()
 getContent ($path)
 getStartPage ($folderPath, $locale)
 contentFile ($path)
- Public Member Functions inherited from ContentSource
 getRepositoryApi ()

Public Attributes

 $contentFolder
- Public Attributes inherited from ContentSource
 $usePersonalisation
 $personalisationFields = array()

Additional Inherited Members

- Static Public Member Functions inherited from ContentSource
static fileAccessible ($filePath, $folder)

Detailed Description

Definition at line 14 of file FileSystemContentSource.php.

Member Function Documentation

FileSystemContentSource::contentFile (   $path)

Get content file location

Parameters
string$pathcontent path
Returns
string

Reimplemented from ContentSource.

Definition at line 75 of file FileSystemContentSource.php.

Referenced by getContent().

{
return $this->contentFolder . $path;
}
FileSystemContentSource::getContent (   $path)

Get content absolute path.

Parameters
string$pathcontent path
Returns
bool||mixed local file location

Reimplemented from ContentSource.

Definition at line 53 of file FileSystemContentSource.php.

References contentFile(), and ContentSource\fileAccessible().

{
$contentFile = $this->contentFile($path);
if ($this->fileAccessible($contentFile, $this->contentFolder)) {
$content = new Content($this, $path);
return $content;
}
return false;
}
FileSystemContentSource::getRequestedAttributes ( )

Return array of attributes which will be requested from API

Returns
array array of attributes

Reimplemented from ContentSource.

Definition at line 27 of file FileSystemContentSource.php.

{
if ($this->usePersonalisation) {
return $this->personalisationFields;
} else {
return array();
}
}
FileSystemContentSource::init ( )

Component initial function

Returns
void

Definition at line 41 of file FileSystemContentSource.php.

{
}

The documentation for this class was generated from the following file: