App\Core_MediaHeader

Inherited from cmsApplication_List

Protected Attributes

protected $valid_extensions= ['png','jpg','jpeg','mp4']
protected $data_directories= array( 'media_original' => '/data/private/header/original', 'media_processed' => '/media/header', )

Protected Methods

protected onAfterSaveItem(array $datavalues, array $original_datavalues, array $previous_item, array $retval)
Do something after save item

Public Methods

public __construct()
Constructor
public bool|array String arraygetValidationErrorListBeforeSaveItem(array $datavalues)
Validates save item. If there's an error, it will return an array with one or more error string, otherwise it will return a boolean true $CurrentUser
public arrayonModifyDataBeforeSaveItem(array $datavalues)
Before save item
public booleanRun(array $command)
Run Command
public saveCustomHeaderForObject(\SCHLIX\cmsApplication_List $app, string $guid, $original_datavalues, array $datavalues, int $id)
Save custom header for object $SystemDB
public arraygetHeaderImage(string $class, string $guid)
Returns the header image for a class by its GUID data $SystemDB
public arraygetHeaderImageWithDefault(string $class, string $guid)
Returns the header image for a class by its GUID data. If none specified,l it will return the app's default header image $SystemDB
public hook_onAfterSaveItem(\SCHLIX\cmsApplication_List $obj, array $datavalues, array $original_datavalues, array $previous_item, array $retval)
Do something after save item
public hook_onAfterSaveCategory(\SCHLIX\cmsApplication_List $obj, array $datavalues, array $original_datavalues, array $previous_category, array $retval)
Do something after save item
public hook_getItemByIDWithExtraData($obj, $item)
public hook_getCategoryByIDWithExtraData($obj, $category)
public hook_getValidationErrorListBeforeSaveItem($app, $datavalues)
public hook_getValidationErrorListBeforeSaveCategory($app, $datavalues)
public hook_getSaveConfigValidationErrorList($app, $datavalues)
public validateSaveItemCategoryConfig($app, $datavalues, $type)

Public Static Methods

public static getDefaultCustomHeader($obj)
public static getCustomHeaderByGUID($obj, $guid)