1 | <?php |
||
14 | class Stencil_Flow implements Stencil_Flow_Interface { |
||
15 | |||
16 | /** |
||
17 | * Pages that are considered of the 'archive' type |
||
18 | * |
||
19 | * Allows for view to fall through to 'archive' |
||
20 | * Allows for listing posts |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $archive_pages = array( |
||
25 | 'author', |
||
26 | 'category', |
||
27 | 'taxonomy', |
||
28 | 'date', |
||
29 | 'tag', |
||
30 | 'archive', |
||
31 | 'post-type-archive', |
||
32 | ); |
||
33 | |||
34 | /** |
||
35 | * Create a list of actions for the specified page |
||
36 | * |
||
37 | * @param string $page Page to get Actions for. |
||
38 | * |
||
39 | * @return array of actions |
||
40 | */ |
||
41 | public function get_page_actions( $page ) { |
||
81 | |||
82 | /** |
||
83 | * Determine which view is available for loading |
||
84 | * |
||
85 | * @param string $page Page to get hierarchy of. |
||
86 | * |
||
87 | * @return array |
||
88 | * @throws Exception When handler doesn't return expected type. |
||
89 | */ |
||
90 | public function get_view_hierarchy( $page ) { |
||
128 | |||
129 | /** |
||
130 | * Add additional options to the existing array |
||
131 | * |
||
132 | * @param string $type Type to get options for. |
||
133 | * @param array|Iterator $options Reference. Existing options. |
||
134 | * |
||
135 | * @throws Exception |
||
136 | */ |
||
137 | private function add_to_options( $type, & $options ) { |
||
153 | } |
||
154 |