App\Core_Redirection

Inherited from cmsApplication_List

Public Methods

public __construct()
Constructor
public booleanviewMainPage(int $pg=1)
View Main Page
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 arraymodifyDataValuesBeforeSaveItem(array $datavalues)
Before save item
public stringremovePrecedingSlash(string $path)
Remove preceding slash from string
public arraygetItemFromURL(string $url, string $fields=' *')
find Redirection item from URL string
public variedgetArrayItemFromURL(string $url, array $rules)
Similar to getItemFromURL but searching from array of rules instead of DB table. Useful when array of rules stored in cache.
public arraygetItemByExactPath(string $path)
Get exact path $SystemDB
public addHits(array $rule)
Add hits count for specified rule. type $SystemDB
public doRedirect()
Trigger redirect for current request when there's matching rule.
public booleanRun(array $command)
Run Command