\WordpressImportDataExtension
Synopsis
class WordpressImportDataExtension
extends DataExtension
{
- // members
- private static array $db = ;
- private static boolean $disable_write_check = false;
- public static null|boolean $throw_error_if_blank_wordpress_data = NULL;
- // methods
- public void updateCMSFields()
- public void setWordpressData()
- public void getWordpressData()
- public void getWordpressMetaData()
- public void onBeforeWrite()
- public array WordpressIDsMap()
- public array WordpressRecordsByWordpressID()
- public array WordpressIDToSilverstripeIDMap()
Hierarchy
Extends
- DataExtension
Tasks
Line | Task |
---|---|
170 | (Jake): Automatically figure out what class has WordpressID in the table |
209 | (Jake): Automatically figure out what class has WordpressID in the table |
Members
private
- $db
- $disable_write_check
—
boolean
To turn on in your configuration once you've imported your Wordpress data.
public
- $throw_error_if_blank_wordpress_data
—
null|boolean
If set to null, it will automatically set to true in a BuildTask/CLI context, otherwise it will be be false.
Methods
public
- WordpressIDToSilverstripeIDMap()
- WordpressIDsMap() — Get list of in-use Wordpress IDs in the SS Database.
- WordpressRecordsByWordpressID() — Get list of Wordpress-imported records with the key being the ID.
- getWordpressData()
- getWordpressMetaData()
- onBeforeWrite()
- setWordpressData()
- updateCMSFields()