PHP Interface WordPress\ORM\ModelInterface

Author: Brandon Wamboldt ([email protected])
Mostrar archivo Open project: brandonwamboldt/wp-orm

Public Methods

Method Description
get_searchable_fields ( ) : array Get an array of fields to search during a search query.
get_table ( ) : string Overwrite this in your concrete class. Returns the table name used to store models of this class.

Method Details

get_searchable_fields() public static method

Get an array of fields to search during a search query.
public static get_searchable_fields ( ) : array
return array

get_table() public static method

Overwrite this in your concrete class. Returns the table name used to store models of this class.
public static get_table ( ) : string
return string