Property | Type | Description | |
---|---|---|---|
$articleTypeService | Newscoop\Service\IArticleTypeService | ||
$em | Doctrine\ORM\EntityManager | ||
$outputService | Newscoop\Service\IOutputService | ||
$outputSettingIssueService | Newscoop\Service\IOutputSettingIssueService | ||
$syncResourceService | Newscoop\Service\ISyncResourceService |
Method | Description | |
---|---|---|
assignArticleTypes ( $articleTypes, |
Adds new mapping in the theme xml | |
assignOutputSetting ( |
||
assignTheme ( |
||
copyToUnassigned ( |
||
exportTheme ( $theme, $p_errorMsg = '' ) | * --------------------------------------------------------------- | |
findOutputSetting ( |
||
getArticleTypeService ( ) : Newscoop\Service\IArticleTypeService | Provides the article type service. | |
getArticleTypes ( |
||
getCountThemes ( $publication, |
||
getCountUnassignedThemes ( |
Provides the count of the entities that can be associated with the provided search. | |
getOutputSettings ( |
||
getTemplates ( $theme ) | ||
getThemePublication ( |
Get the publication of a theme, and optionally output | |
getThemes ( $publication, |
||
getUnassignedThemes ( |
||
installTheme ( $filePath ) | ||
removeTheme ( $theme ) | ||
updateTheme ( |
Method | Description | |
---|---|---|
copy ( string $src, string $dst ) | Copies recursivelly the folder content from src to destination. | |
filterThemesConfigPathsInSameFolder ( string $config, array $allConfigs ) : array | Filter from the provided configs array all the configs that are located under the same folder. | |
getManager ( ) : Doctrine\ORM\EntityManager | Provides the dictrine entity manager. | |
getNewThemeFolder ( str $inFolder ) : str | Provides a new folder (Automatically created) to place a new theme. | |
getOutputService ( ) : Newscoop\Service\IOutputService | Provides the ouput service. | |
getOutputSettingIssueService ( ) : Newscoop\Service\IOutputSettingIssueService | Provides the Output setting issue service. | |
getRelativePath ( |
Provides the relative path of the resource based on the provided theme path. | |
getSyncResourceService ( ) : Newscoop\Service\ISyncResourceService | Provides the sync resource service. | |
loadOutputResource ( SimpleXMLElement $parent, string $tagName, string $themePath ) : |
Reads the resources from an output tag. | |
loadOutputSetting ( SimpleXMLElement $nodeOutput, string $themePath ) : |
Load the output setting from the provided xml node. | |
loadOutputSettings ( string $themePath ) : array | Load all the output settings from the specified path. | |
rrmdir ( string $dir ) | Deletes recursivelly the folder content from dir. | |
syncOutputSettings ( |
Copies from the from output settings to the to output settings all the pages (front, article . |
Method | Description | |
---|---|---|
getThemesData ( $publication, |
||
getUnassignedThemesData ( |
* --------------------------------------------------------------- |
public assignArticleTypes ( $articleTypes, |
||
$articleTypes | an array of mapping new values to old ones [ oldTypeName => [ name : newTypeName, ignore : boolean, fields' : [ OldFieldName : [ name : new/oldType, parentType : existingSysType, ignore : boolean ], [...] ] ] , [...] ] parentType => existingSysType will be used for getting it's other props from db | |
$theme | ||
return | string | the generated xml |
public assignOutputSetting ( |
||
$outputSettings | ||
$theme |
public assignTheme ( |
||
$theme | ||
$publication |
public copyToUnassigned ( |
||
$theme |
public exportTheme ( $theme, $p_errorMsg = '' ) |
protected filterThemesConfigPathsInSameFolder ( string $config, array $allConfigs ) : array | ||
$config | string | The config path to be searched for, not null. |
$allConfigs | array | |
return | array | The array containing as key the id of the theme config (index) and as a value the relative path of the theme configuration XML file for all configurations that are iun the same folder, not null can be empty. |
public findOutputSetting ( |
||
$theme | ||
$output |
public getArticleTypeService ( ) : Newscoop\Service\IArticleTypeService | ||
return | Newscoop\Service\IArticleTypeService |
public getArticleTypes ( |
||
$theme | ||
return | object |
public getCountThemes ( $publication, |
||
$search |
public getCountUnassignedThemes ( |
||
$search | The search criteria, not null. | |
return | integer | The entities count. |
protected getManager ( ) : Doctrine\ORM\EntityManager | ||
return | Doctrine\ORM\EntityManager | The doctrine entity manager. |
protected getNewThemeFolder ( str $inFolder ) : str | ||
$inFolder | str | The folder wehere to place the new theme folder, this has to be relative to the themes folder. |
return | str | The relative theme path. |
protected getOutputService ( ) : Newscoop\Service\IOutputService | ||
return | Newscoop\Service\IOutputService | The service service to be used. |
protected getOutputSettingIssueService ( ) : Newscoop\Service\IOutputSettingIssueService | ||
return | Newscoop\Service\IOutputSettingIssueService | The output setting issue service to be used by this controller. |
public getOutputSettings ( |
||
$theme |
protected getRelativePath ( |
||
$rsc | The resource to extract the relative path from, not null. | |
$themePath | string | The theme path, not null. |
return | string | The relative [path in regards with the theme path for the resource. |
protected getSyncResourceService ( ) : Newscoop\Service\ISyncResourceService | ||
return | Newscoop\Service\ISyncResourceService | The sync resource service to be used. |
public getThemePublication ( |
||
$theme | ||
$output | ||
return |
public getThemes ( $publication, |
||
$search |
public getUnassignedThemes ( |
||
$search |
protected loadOutputResource ( SimpleXMLElement $parent, string $tagName, string $themePath ) : |
||
$parent | SimpleXMLElement | The parent output node to read the resources from, *(not null not empty). |
$tagName | string | The tag name containing the resource, *(not null not empty). |
$themePath | string | The theme path to construct the resource path based on, *(not null not empty). |
return | The obtained resource, not null. |
protected loadOutputSetting ( SimpleXMLElement $nodeOutput, string $themePath ) : |
||
$nodeOutput | SimpleXMLElement | The node from which to load, *(not null not empty). |
$themePath | string | The theme path to construct the resource path based on, *(not null not empty). |
return | The loaded output setting, not null. |
protected loadOutputSettings ( string $themePath ) : array | ||
$themePath | string | The theme path from where to load the output settings, *(not null not empty). |
return | array | The array containing all the found output settings, not null. |
protected syncOutputSettings ( |
||
$to | The output setting to copy to, *(not null not empty). | |
$from | The output setting to copy from, *(not null not empty). |
protected IArticleTypeService,Newscoop\Service $articleTypeService | ||
return | Newscoop\Service\IArticleTypeService |
protected Doctrine\ORM\EntityManager $em | ||
return | Doctrine\ORM\EntityManager |
protected IOutputService,Newscoop\Service $outputService | ||
return | Newscoop\Service\IOutputService |
protected IOutputSettingIssueService,Newscoop\Service $outputSettingIssueService | ||
return | Newscoop\Service\IOutputSettingIssueService |