| 1: | <?php
|
| 2: |
|
| 3: | |
| 4: | |
| 5: | |
| 6: | |
| 7: | |
| 8: | |
| 9: | |
| 10: | |
| 11: |
|
| 12: | class Smarty_Internal_Method_GetAutoloadFilters extends Smarty_Internal_Method_SetAutoloadFilters
|
| 13: | {
|
| 14: | |
| 15: | |
| 16: | |
| 17: | |
| 18: | |
| 19: | |
| 20: | |
| 21: | |
| 22: | |
| 23: | |
| 24: | |
| 25: | |
| 26: | |
| 27: |
|
| 28: | public function getAutoloadFilters(Smarty_Internal_TemplateBase $obj, $type = null)
|
| 29: | {
|
| 30: | $smarty = $obj->_getSmartyObj();
|
| 31: | if ($type !== null) {
|
| 32: | $this->_checkFilterType($type);
|
| 33: | return isset($smarty->autoload_filters[ $type ]) ? $smarty->autoload_filters[ $type ] : array();
|
| 34: | }
|
| 35: | return $smarty->autoload_filters;
|
| 36: | }
|
| 37: | }
|
| 38: | |