Class Factory
Author entity factory.
Allows for easy instantiation of author entity objects.
Methods summary
public
Tev\Author\Model\Author
|
#
create( integer $id = null )
Create an author from a Wordpress user ID.
Create an author from a Wordpress user ID.
If in the loop and $id is omitted, will attempt to get the current
post author.
Parameters
- $id
- Optional. User ID. Will use ID from The Loop if omitted
Returns
Throws
Exception If $id not supplied and not within the loop
|