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 FileField

File field.

Will normalize the data that comes from the field to attempt to return all attributes.

Tev\Field\Model\AbstractField implements Tev\Contracts\WordpressWrapperInterface
Extended by Tev\Field\Model\FileField

Direct known subclasses

Tev\Field\Model\ImageField

Namespace: Tev\Field\Model
Located at Tev/Field/Model/FileField.php

Methods summary

public
# __construct( array $data )

Constructor.

Constructor.

Parameters

$data
$base Underlying customer field array

Overrides

Tev\Field\Model\AbstractField::__construct
public string
# getValue( )

Get the attachment URL.

Get the attachment URL.

Returns

string
public string
# id( )

Get the attachment ID.

Get the attachment ID.

May be empty, depending on field config.

Returns

string
public string
# url( )

Get the attachment URL.

Get the attachment URL.

May be empty, depending on field config.

Returns

string
public string
# title( )

Get the attachment title.

Get the attachment title.

May be empty, depending on field config.

Returns

string
public string
# caption( )

Get the attachment caption.

Get the attachment caption.

May be empty, depending on field config.

Returns

string
public string
# description( )

Get the attachment description.

Get the attachment description.

May be empty, depending on field config.

Returns

string
protected
# normalize( )

Normalize attachment data, depending on how the underlying field is configured.

Normalize attachment data, depending on how the underlying field is configured.

Throws

Exception
If invalid return_format is found

Methods inherited from Tev\Field\Model\AbstractField

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

Properties summary

protected string $atId

Attachment ID.

Attachment ID.

#
protected string $atUrl

Attachemnt URL.

Attachemnt URL.

#
protected string $atTitle

Attachment title.

Attachment title.

#
protected string $atCaption

Attachment caption.

Attachment caption.

#
protected string $atDescription

Attachment description.

Attachment description.

#

Properties inherited from Tev\Field\Model\AbstractField

$base

3ev Core Wordpress library API API documentation generated by ApiGen