EasyBlogMaintenanceScriptMigrateDraftToPost
extends EasyBlogMaintenanceScript
in package
To extend, your script class must in the format of: EasyBlogMaintenanceScript[FileName]
Scripts should be placed in /administrator/com_easyblog/updates/[version]
Table of Contents
Properties
- $description : string
- The description of your script
- $error : mixed
- $title : string
- The title of your script
Methods
- getError() : mixed
- hasError() : mixed
- isColumnExists() : mixed
- isTableDraftsExists() : mixed
- main() : bool
- The main function that is called by the maintenance library
- setError() : mixed
Properties
$description
The description of your script
public
static string
$description
= "Draft is deprecated in 5.0.0. This migrates old data to new format as post/revision."
$error
public
mixed
$error
$title
The title of your script
public
static string
$title
= "Migrate legacy draft to post."
Methods
getError()
public
getError() : mixed
hasError()
public
hasError() : mixed
isColumnExists()
public
isColumnExists(mixed $tbName, mixed $colName) : mixed
Parameters
- $tbName : mixed
- $colName : mixed
isTableDraftsExists()
public
isTableDraftsExists() : mixed
main()
The main function that is called by the maintenance library
public
main() : bool
Return values
bool —Result of the script execution
setError()
public
setError(mixed $msg) : mixed
Parameters
- $msg : mixed