예제 #1
0
 /**
  * Method to instantiate the form field object.
  *
  * @param   object  $form  The form to attach to the form field object.
  *
  * @since   11.1
  */
 public function __construct($form = null)
 {
     parent::__construct($form);
     // Detect the field type if not set
     if (!isset($this->type)) {
         $parts = JString::splitCamelCase(get_class($this));
         if ($parts[0] == 'J') {
             $this->type = JString::ucfirst($parts[count($parts) - 1], '_');
         } else {
             $this->type = JString::ucfirst($parts[0], '_') . JString::ucfirst($parts[count($parts) - 1], '_');
         }
     }
 }
예제 #2
0
 public function __construct(RokCommon_Form $form = null)
 {
     parent::__construct($form);
     $this->assets_content = $this->container->getParameter('form.group.assets.context');
 }
예제 #3
0
 /**
  * Method to instantiate the form field object.
  *
  * @param   object  $form  The form to attach to the form field object.
  *
  * @since   11.1
  */
 public function __construct($form = null)
 {
     parent::__construct($form);
     // Detect the field type if not set
     if (!isset($this->type)) {
         $parts = JString::splitCamelCase(get_class($this));
         if ($parts[0] == 'J') {
             $this->type = JString::ucfirst($parts[count($parts) - 1], '_');
         } else {
             $this->type = JString::ucfirst($parts[0], '_') . JString::ucfirst($parts[count($parts) - 1], '_');
         }
     }
     $this->assets_content = $this->container->getParameter('form.field.assets.context');
 }