1 | <?php |
||
12 | class LSX_Schema_Graph_Piece implements WPSEO_Graph_Piece { |
||
13 | /** |
||
14 | * A value object with context variables. |
||
15 | * |
||
16 | * @var \WPSEO_Schema_Context |
||
17 | */ |
||
18 | public $context; |
||
19 | /** |
||
20 | * This is the post type that you want the piece to output for. |
||
21 | * |
||
22 | * @var string; |
||
23 | */ |
||
24 | public $post_type; |
||
25 | /** |
||
26 | * If this is a top level parent |
||
27 | * |
||
28 | * @var boolean |
||
29 | */ |
||
30 | public $is_top_level; |
||
31 | /** |
||
32 | * This holds the meta_key => scehma_type of the fields you want to add to your subtrip. |
||
33 | * |
||
34 | * @var array() |
||
35 | */ |
||
36 | public $place_ids; |
||
37 | /** |
||
38 | * This holds an object or the current trip post. |
||
39 | * |
||
40 | * @var WP_Post(); |
||
41 | */ |
||
42 | public $post; |
||
43 | /** |
||
44 | * This holds URL for the trip |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | public $post_url; |
||
49 | /** |
||
50 | * Constructor. |
||
51 | * |
||
52 | * @param \WPSEO_Schema_Context $context A value object with context variables. |
||
53 | */ |
||
54 | public function __construct( WPSEO_Schema_Context $context ) { |
||
64 | /** |
||
65 | * Determines whether or not a piece should be added to the graph. |
||
66 | * |
||
67 | * @return bool |
||
68 | */ |
||
69 | public function is_needed() { |
||
78 | /** |
||
79 | * Returns Review data. |
||
80 | * |
||
81 | * @return array $data Review data. |
||
82 | */ |
||
83 | public function generate() { |
||
87 | /** |
||
88 | * Gets the connected reviews post type and set it as the "Review" schema |
||
89 | * |
||
90 | * @param array $data An array of offers already added. |
||
91 | * @param string $data_key |
||
92 | * @param boolean $include_aggregate |
||
93 | * @return array $data |
||
94 | */ |
||
95 | public function add_reviews( $data, $data_key = 'reviews', $include_aggregate = true ) { |
||
134 | /** |
||
135 | * Gets the connected posts and set it as the "Article" schema |
||
136 | * |
||
137 | * @param array $data An array of offers already added. |
||
138 | * @param string $data_key |
||
139 | * @return array $data |
||
140 | */ |
||
141 | public function add_articles( $data, $data_key = 'subjectOf' ) { |
||
169 | /** |
||
170 | * Adds the Project and Testimonials attached to the Team Member |
||
171 | * |
||
172 | * @param array $data |
||
173 | * |
||
174 | * @return array $data |
||
175 | */ |
||
176 | public function add_connections( $data ) { |
||
193 | /** |
||
194 | * Adds the terms for the taxonomy |
||
195 | * |
||
196 | * @param array $data Review data. |
||
197 | * @param array $data_key the parameter name you wish to assign it to. |
||
198 | * @param array $taxonomy the taxonomy to grab terms for. |
||
199 | * |
||
200 | * @return array $data Review data. |
||
201 | */ |
||
202 | public function add_taxonomy_terms( $data, $data_key, $taxonomy ) { |
||
211 | /** |
||
212 | * Adds the custom field value for the supplied key |
||
213 | * |
||
214 | * @param array $data Schema data. |
||
215 | * @param string $data_key the parameter name you wish to assign it to. |
||
216 | * @param string $meta_key the taxonomy to grab terms for. |
||
217 | * @param boolean $single A single custom field or an array |
||
218 | * |
||
219 | * @return array $data Review data. |
||
220 | */ |
||
221 | public function add_custom_field( $data, $data_key, $meta_key, $single = true ) { |
||
228 | } |
||
229 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.