3ev Core Wordpress library API
  • Namespace
  • Class

Namespaces

  • Tev
    • Application
      • Bootstrap
    • Author
      • Model
    • Contracts
    • Database
      • CustomTables
    • Field
      • Model
      • Util
    • Plugin
      • Action
      • Shortcode
    • Post
      • Model
      • Repository
    • Taxonomy
      • Model
      • Repository
    • Term
      • Model
      • Repository
    • Util
    • View
      • Exception
  • None

Classes

  • AbstractField
  • AuthorField
  • BasicField
  • DateField
  • FileField
  • FlexibleContentField
  • GoogleMapField
  • ImageField
  • NullField
  • NumberField
  • PostField
  • RepeaterField
  • SelectField
  • TaxonomyField

Class AuthorField

Author field.

Returns a single Author object or array of Author objects.

Tev\Field\Model\AbstractField implements Tev\Contracts\WordpressWrapperInterface
Extended by Tev\Field\Model\AuthorField
Namespace: Tev\Field\Model
Located at Tev/Field/Model/AuthorField.php

Methods summary

public
# __construct( array $base, Tev\Author\Factory $authorFactory )

Constructor.

Constructor.

Parameters

$base
Base field data
$authorFactory
Author factory

Overrides

Tev\Field\Model\AbstractField::__construct
public Tev\Author\Model\Author|Tev\Author\Model\Author[]|null
# getValue( )

Get a single author object or array of author objects.

Get a single author object or array of author objects.

If no authors are configured, returned will result will be an empty array if this is a mutli-select, or null if not.

Returns

Tev\Author\Model\Author|Tev\Author\Model\Author[]|null
public string
# __toString( )

Get a string representation of this field.

Get a string representation of this field.

Author display name or names, comma-space separated.

Returns

string

Overrides

Tev\Field\Model\AbstractField::__toString

Methods inherited from Tev\Field\Model\AbstractField

getBaseObject(), getKey(), getName(), val()

Properties summary

Properties inherited from Tev\Field\Model\AbstractField

$base

3ev Core Wordpress library API API documentation generated by ApiGen