Beispiel #1
0
 /**
  * Defines the form
  * @param string $context
  */
 function define($context)
 {
     parent::define($context);
     $this->add_mixin('Mixin_Form_Instance_Methods');
     $this->add_mixin('Mixin_Form_Field_Generators');
     $this->implement('I_Form');
 }
 /**
  * Provides default behavior for rendering fields
  * @param string $method
  * @param array $args
  */
 function __call($method, $args)
 {
     if (preg_match("/render_([\\w_]+)/", $method, $matches) && !$this->has_method($method)) {
         $field_name = $matches[1];
         $value = isset($this->_display_type->{$field_name}) ? $this->_display_type->{$field_name} : '';
         return $this->render_partial($field_name, array('value' => $value, 'context' => $this->_display_type->context), TRUE);
     } else {
         return parent::__call($method, $args);
     }
 }
 function define($context = FALSE)
 {
     parent::define($context);
     $this->add_mixin('Mixin_MediaRSS_Controller');
     $this->implement('I_MediaRSS_Controller');
 }
 public function define($context = FALSE)
 {
     if (is_array($context)) {
         $this->name = $context[0];
     } else {
         $this->name = $context;
     }
     parent::define($context);
     $this->add_mixin('Mixin_NextGen_Admin_Page_Instance_Methods');
     $this->implement('I_NextGen_Admin_Page');
 }
 function initialize()
 {
     parent::initialize();
     $this->add_pre_hook('index_action', 'Enqueue Backend Resources', 'Hook_NextGen_Admin_Page_Resources', 'enqueue_backend_resources');
 }
 function define($context = FALSE)
 {
     parent::define($context);
     $this->implement('I_Taxonomy_Controller');
 }
 public function define($context = FALSE)
 {
     parent::define($context);
     $this->implement('I_Dynamic_Thumbnails_Controller');
 }
 function define($context = FALSE)
 {
     parent::define($context);
     $this->add_mixin('Mixin_NextGen_Pro_Lightbox_Controller');
     $this->implement('C_NextGen_Pro_Lightbox_Controller');
 }
 function define($context = FALSE)
 {
     parent::define($context);
     $this->add_mixin('Mixin_Http_Response_Actions');
     $this->implement('I_Http_Response');
 }
 function initialize()
 {
     parent::initialize();
     $this->_app = C_NextGen_Global_Settings::get_instance()->dynamic_stylesheet_slug;
 }
 function define($context = FALSE)
 {
     parent::define($context);
     $this->add_mixin('Mixin_Widget');
     $this->implement('I_Widget');
 }
 public function define($context = FALSE)
 {
     parent::define($context);
     $this->add_mixin('Mixin_Display_Type_Controller');
     $this->implement('I_Display_Type_Controller');
 }
 function define()
 {
     parent::define();
     $this->implement('I_NextGen_Pro_Checkout');
     $this->add_mixin('Mixin_NextGen_Pro_Checkout');
 }
 public function define($context = FALSE)
 {
     parent::define($context);
     $this->implement('I_Ajax_Controller');
 }
 function define($context = FALSE)
 {
     parent::define($context);
     $this->add_mixin('Mixin_Galleria_iFrame_Controller');
     $this->implement('I_Galleria_iFrame_Controller');
 }