public function backend_data() { $widgets = Widget_Manager::get_all_widgets(); $select = array(); foreach ($widgets as $id => $widget) { $class = 'Model_Widget_' . $widget['type']; if (!class_exists($class)) { continue; } $class = new ReflectionClass($class); if ($class->isSubclassOf('Model_Widget_Decorator_Pagination')) { $select[$id] = $widget['name']; } } return array('select' => $select); }