/**
  * @param APPLICATION $context Main application.
  */
 public function __construct($context)
 {
     parent::__construct($context);
     $this->_add_text('extra_description', 'Extra description');
     $this->_add_synced_field('component_id', 0);
     $this->_add_synced_field('kind', array_keys($this->app->display_options->entry_kinds()));
     $this->_add_synced_field('not_kind', false);
 }
 /**
  * @param APPLICATION $context Main application.
  */
 public function __construct($context)
 {
     parent::__construct($context);
     $this->_add_text('weather', 'Weather', false, false, 'jrnl');
     $this->_add_synced_field('colder_than', '');
     $this->_add_synced_field('warmer_than', '');
     $this->_add_synced_field('weather_type', array());
     $this->_add_synced_field('not_weather_type', false);
 }
Exemplo n.º 3
0
 /**
  * @param APPLICATION $context Main application.
  */
 public function __construct($context)
 {
     parent::__construct($context);
     $this->_add_date('time_published', 'Published');
     $this->_add_user('publisher_id', 'Publisher');
     $this->_link_fields('time_published', 'publisher_id');
 }