1 | <?php |
||
22 | class PostType implements PostTypeInterface |
||
|
|||
23 | { |
||
24 | private $name; |
||
25 | private $options; |
||
26 | |||
27 | /** |
||
28 | * Constructor. |
||
29 | * |
||
30 | * @param string $name |
||
31 | * @param array $options |
||
32 | */ |
||
33 | public function __construct($name = null, $options = []) |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function fields() |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function permalink($permalink, $id = 0) |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function rewriteRules() |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public static function serialize($postTypes) |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function taxonomyPermalink($url, $term) |
||
93 | |||
94 | /** |
||
95 | * Static method that simplifies the process of getting all data |
||
96 | * from given post. This method is called by the main serialize method. |
||
97 | * |
||
98 | * @param object $postType The post type |
||
99 | * |
||
100 | * @deprecated since version 1.7, will be removed in 2.0. Create a custom serializer class. |
||
101 | * |
||
102 | * @return object Serialized given post type |
||
103 | */ |
||
104 | protected static function singleSerialize($postType) |
||
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | public function postType() |
||
118 | |||
119 | /** |
||
120 | * {@inheritdoc} |
||
121 | */ |
||
122 | public function taxonomyType() |
||
125 | } |
||
126 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.