Overview

Namespaces

  • rsanchez
    • Deep
      • App
        • EE
        • Laravel
          • Facade
      • Collection
      • Hydrator
      • Model
      • Plugin
      • Relations
      • Repository

Classes

  • AbstractEntity
  • AbstractField
  • AbstractProperty
  • Asset
  • Category
  • CategoryField
  • CategoryPosts
  • Channel
  • Comment
  • Entry
  • Field
  • Fieldtype
  • File
  • GridCol
  • GridRow
  • JoinableScope
  • MatrixCol
  • MatrixRow
  • Member
  • MemberField
  • PlayaEntry
  • RelationshipEntry
  • Site
  • Title
  • UploadPref

Interfaces

  • FileInterface

Traits

  • GlobalAttributeVisibilityTrait
  • JoinableTrait
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: /**
 4:  * Deep
 5:  *
 6:  * @package      rsanchez\Deep
 7:  * @author       Rob Sanchez <info@robsanchez.com>
 8:  */
 9: 
10: namespace rsanchez\Deep\Model;
11: 
12: use rsanchez\Deep\Model\AbstractField;
13: use rsanchez\Deep\Collection\CategoryFieldCollection;
14: 
15: /**
16:  * Model for the category_fields table
17:  */
18: class CategoryField extends AbstractField
19: {
20:     /**
21:      * {@inheritdoc}
22:      */
23:     protected $table = 'category_fields';
24: 
25:     /**
26:      * {@inheritdoc}
27:      */
28:     protected $primaryKey = 'field_id';
29: 
30:     /**
31:      * {@inheritdoc}
32:      *
33:      * @param  array                                             $fields
34:      * @return \rsanchez\Deep\Collection\CategoryFieldCollection
35:      */
36:     public function newCollection(array $fields = array())
37:     {
38:         return new CategoryFieldCollection($fields);
39:     }
40: 
41:     /**
42:      * {@inheritdoc}
43:      */
44:     public function getName()
45:     {
46:         return $this->field_name;
47:     }
48: 
49:     /**
50:      * {@inheritdoc}
51:      */
52:     public function getIdentifier()
53:     {
54:         return 'field_id_'.$this->field_id;
55:     }
56: 
57:     /**
58:      * {@inheritdoc}
59:      */
60:     public function getId()
61:     {
62:         return $this->field_id;
63:     }
64: 
65:     /**
66:      * {@inheritdoc}
67:      */
68:     public function getType()
69:     {
70:         return $this->field_type;
71:     }
72: }
73: 
API documentation generated by ApiGen 2.8.0