\WordpressImportBasicTask
A basic example of how to write a custom Wordpress import task.
Synopsis
class WordpressImportBasicTask
extends BuildTask
{
- // members
- protected WordpressDatabase $db = NULL;
- protected string $title = 'Wordpress Custom Import Task';
- protected string $description = 'Runs a custom Wordpress import';
- private static array $default_db = ;
- private static string $navigation_slug = '';
- private static string $assets_dir = "";
- private static array $dependencies = ;
- // methods
- public void getTitle()
- public void getDescription()
- public boolean isEnabled()
- public void run()
- public void runCustom()
Hierarchy
Extends
- BuildTask
Members
private
- $assets_dir
—
string
The assets directory - $default_db — array
- $dependencies — array
protected
- $db — WordpressDatabase
- $description — string
- $title — string
Methods
public
- getDescription()
- getTitle()
- isEnabled() — Disables task visibility and executability if its been extended.
- run()
- runCustom()