Esempio n. 1
0
 function __construct()
 {
     $this->__table = 'workflow_group';
     $this->setHeadline('workflow_title');
     $this->_order_by = 'id';
     parent::__construct();
 }
Esempio n. 2
0
 function __construct()
 {
     $this->__table = 'cms_auth';
     $this->_order_by = 'real_name';
     parent::__construct();
     // form stuff
     $this->form_header = 'real_name';
     $this->display_fields = array('real_name', 'username', 'user_level', 'status');
     $this->form_required_fields[] = 'real_name';
     $this->form_required_fields[] = 'email';
     $this->form_required_fields[] = 'username';
     $this->form_rules[] = array('email', 'The email does not appear to be the correct format', 'email');
     $this->form_rules[] = array('username', 'This is not a unique username', 'callback', array(&$this, 'uniqueUsername'));
     // secure password rules, 8 characters long, upper and lower case characters
     // $this->form_rules[] = array('password', 'The password must be at least 8 characters long and contain upper and lower case characters and a number.', 'minlength', 8, 'client');
     // $this->form_rules[] = array('password', 'The password must be at least 8 characters long and contain upper and lower case characters and a number.', 'regex', '/[A-Z]/', 'client');
     // $this->form_rules[] = array('password', 'The password must be at least 8 characters long and contain upper and lower case characters and a number.', 'regex', '/[a-z]/', 'client');
     // $this->form_rules[] = array('password', 'The password must be at least 8 characters long and contain upper and lower case characters and a number.', 'regex', '/[0-9]/', 'client');
     // password field
     $this->form_elements['password'] = array('password');
     // hide the status field for now
     $this->form_elements['status'] = array('hidden', 'status');
     // Ignore the feed_token field for now
     $this->form_ignore_fields[] = 'feed_token';
     // Ignore the confirmation_token field for now
     $this->form_ignore_fields[] = 'confirmation_token';
     // user level - a non-root can't set someone else to be root
     $user_lvl = array(N_USER_NORIGHTS => 'non-privileged', N_USER_EDITOR => 'user', N_USER_ADMIN => 'admin');
     $this->form_elements['user_level'] = array('select', 'user_level', 'User Level', $user_lvl);
     $this->setHeadline('real_name');
 }
Esempio n. 3
0
 function __construct()
 {
     $this->__table = 'page_content';
     $this->_order_by = 'page_content.content_order, page_content.id';
     $this->form_field_options['timed_start'] = array('addEmptyOption' => true);
     $this->form_field_options['timed_end'] = array('addEmptyOption' => true);
     $this->form_elements['col_xs'] = array('select', 'col_xs', 'Width (xs)', $this->grid_options('col_xs'));
     $this->form_elements['col_sm'] = array('select', 'col_sm', 'Width (sm)', $this->grid_options('col'));
     $this->form_elements['col_md'] = array('select', 'col_md', 'Width (md)', $this->grid_options('col'));
     $this->form_elements['col_lg'] = array('select', 'col_lg', 'Width (lg)', $this->grid_options('col'));
     $this->form_elements['row_xs'] = array('select', 'row_xs', 'Height (xs)', $this->grid_options('row_xs'));
     $this->form_elements['row_sm'] = array('select', 'row_sm', 'Height (sm)', $this->grid_options('row'));
     $this->form_elements['row_md'] = array('select', 'row_md', 'Height (md)', $this->grid_options('row'));
     $this->form_elements['row_lg'] = array('select', 'row_lg', 'Height (lg)', $this->grid_options('row'));
     $this->form_elements['offset_col_xs'] = array('select', 'offset_col_xs', 'Offset Width (xs)', $this->grid_options('offset_col_xs'));
     $this->form_elements['offset_col_sm'] = array('select', 'offset_col_sm', 'Offset Width (sm)', $this->grid_options('offset_col'));
     $this->form_elements['offset_col_md'] = array('select', 'offset_col_md', 'Offset Width (md)', $this->grid_options('offset_col'));
     $this->form_elements['offset_col_lg'] = array('select', 'offset_col_lg', 'Offset Width (lg)', $this->grid_options('offset_col'));
     $this->form_elements['offset_row_xs'] = array('select', 'offset_row_xs', 'Offset Height (xs)', $this->grid_options('offset_row_xs'));
     $this->form_elements['offset_row_sm'] = array('select', 'offset_row_sm', 'Offset Height (sm)', $this->grid_options('offset_row'));
     $this->form_elements['offset_row_md'] = array('select', 'offset_row_md', 'Offset Height (md)', $this->grid_options('offset_row'));
     $this->form_elements['offset_row_lg'] = array('select', 'offset_row_lg', 'Offset Height (lg)', $this->grid_options('offset_row'));
     $this->form_elements['pull_xs'] = array('select', 'pull_xs', 'Pull (xs)', $this->grid_options('pull_xs'));
     $this->form_elements['pull_sm'] = array('select', 'pull_sm', 'Pull (sm)', $this->grid_options('pull'));
     $this->form_elements['pull_md'] = array('select', 'pull_md', 'Pull (md)', $this->grid_options('pull'));
     $this->form_elements['pull_lg'] = array('select', 'pull_lg', 'Pull (lg)', $this->grid_options('pull'));
     $this->form_elements['gutter_xs'] = array('text', 'gutter_xs', 'Gutter (xs)');
     $this->form_elements['gutter_sm'] = array('text', 'gutter_sm', 'Gutter (sm)');
     $this->form_elements['gutter_md'] = array('text', 'gutter_md', 'Gutter (md)');
     $this->form_elements['gutter_lg'] = array('text', 'gutter_lg', 'Gutter (lg)');
     parent::__construct();
 }
 function __construct()
 {
     $this->__table = 'page_template_containers';
     $this->setHeadline('container_name');
     $this->form_elements['page_template_id'] = array('foreignkey', 'page_template_id', 'Page Template:', array('model' => 'page_template', 'headline' => 'template_name', 'addEmptyOption' => false));
     parent::__construct();
 }
Esempio n. 5
0
 function __construct()
 {
     $this->__table = 'code_caller';
     $this->form_required_fields[] = 'content';
     $this->_order_by = 'cms_headline';
     parent::__construct();
 }
Esempio n. 6
0
 function __construct()
 {
     $this->__table = 'cms_asset_info';
     $this->_order_by = 'cms_asset_info.asset_name';
     $this->setHeadline('asset_name');
     parent::__construct();
 }
Esempio n. 7
0
 function __construct()
 {
     $this->__table = 'bio';
     $this->_order_by = 'cms_headline';
     $this->form_elements['image'] = array('cms_file', 'image', 'Image <small>80x80</small>');
     parent::__construct();
 }
Esempio n. 8
0
 function __construct()
 {
     $this->__table = 'news_item';
     $this->form_field_attributes['description'] = array('class' => 'ckeditor');
     $this->_order_by = 'release_date DESC';
     $this->viewlist_fields = array('release_date', 'cms_headline', 'link');
     parent::__construct();
 }
Esempio n. 9
0
 function __construct()
 {
     $this->__table = 'redirect';
     $this->form_ignore_fields[] = 'count';
     $this->not_connectable = true;
     $this->form_rules[] = array('url', 'This is not a unique url', 'callback', array(&$this, 'validate_url'));
     parent::__construct();
 }
Esempio n. 10
0
 function __construct()
 {
     $this->__table = 'poll';
     $this->form_required_fields[] = 'question_count';
     $this->form_elements['cms_headline'] = array('text', 'cms_headline', 'Question');
     $this->order_by = 'active DESC, id DESC';
     parent::__construct();
 }
Esempio n. 11
0
 function __construct()
 {
     $this->__table = 'cms_asset_template';
     $this->_order_by = $this->__table . '.asset';
     $this->setHeadline('asset');
     $this->form_elements['page_template_container_id'] = array('foreignkey', 'page_template_container_id', 'Container:', array('model' => 'page_template_containers', 'headline' => 'container_name', 'addEmptyOption' => false));
     parent::__construct();
 }
Esempio n. 12
0
 function __construct()
 {
     $this->__table = 'masthead';
     $this->form_elements['image'] = array('cms_file', 'image', 'Image');
     $this->form_required_fields[] = 'cms_headline';
     $this->_order_by = 'cms_headline';
     $this->search_field = 'cms_headline';
     parent::__construct();
 }
Esempio n. 13
0
 function __construct()
 {
     $this->__table = 'workflow';
     $this->form_ignore_fields = array('page_id', 'page_content_id', 'workflow_group_id', 'asset', 'asset_id', 'action', 'draft', 'submitted', 'parent_workflow', 'completed');
     $this->form_elements['approved'] = array('select', 'workflow_approve', 'Approval', array('1' => 'Approve', '0' => 'Decline'));
     $this->form_field_options['timed_start'] = array('addEmptyOption' => true);
     $this->form_field_options['timed_end'] = array('addEmptyOption' => true);
     parent::__construct();
 }
Esempio n. 14
0
 function __construct()
 {
     $this->__table = 'youtube';
     $this->form_required_fields[] = 'embed_html';
     $this->form_elements['thumbnail_image'] = 'cms_file';
     $align_classes = array('default' => "Default", 'left' => "Left", 'right' => "Right", 'center' => "Center");
     $this->form_elements['align'] = array('select', 'align', 'Align', $align_classes);
     parent::__construct();
 }
Esempio n. 15
0
 function __construct()
 {
     $this->__table = 'cms_settings';
     $this->setHeadline('setting_var');
     $this->_order_by = 'cms_settings.setting';
     $this->form_elements['setting'] = array('select', 'setting', 'Setting', array(SETTINGS_EDITOR => 'WYSIWYG Editor'));
     $this->form_ignore_fields[] = 'user_id';
     parent::__construct();
 }
Esempio n. 16
0
 function __construct()
 {
     $this->__table = 'media_element';
     // set up form
     $this->form_required_fields[] = 'media_file';
     $this->form_required_fields[] = 'link_title';
     $this->form_elements['media_file'] = array('cms_file', 'media_file', 'Media File');
     $this->_order_by = 'cms_headline';
     parent::__construct();
 }
Esempio n. 17
0
 function __construct()
 {
     $this->__table = 'body_image';
     $this->form_elements['small_image'] = array('cms_file', 'small_image', 'Small Image');
     $this->form_elements['large_image'] = array('cms_file', 'large_image', 'Large Image');
     $this->form_elements['align'] = array('select', 'align', 'Align', array('default' => 'Default', 'left' => 'Left', 'center' => 'Center', 'right' => 'Right'));
     $this->form_required_fields = array('small_image');
     $this->_order_by = 'cms_headline';
     $this->resize_to_width = 800;
     $this->resize_to_height = 0;
     parent::__construct();
 }
Esempio n. 18
0
 function __construct()
 {
     $this->__table = 'password';
     $this->form_elements['cms_headline'] = array('text', 'cms_headline', 'Group');
     $this->form_required_fields[] = 'cms_headline';
     $this->form_required_fields[] = 'login_url';
     $this->form_elements['hashed_password'] = array('hidden', 'hashed_password', 'Hashed Password');
     $this->_order_by = 'cms_headline';
     $this->search_field = 'cms_headline';
     $this->salt = '16f4462bb0a630f1e65b88155061ba53';
     parent::__construct();
 }
Esempio n. 19
0
 function __construct()
 {
     $this->__table = 'cms_audit_trail';
     $this->name = 'cms_audit_trail';
     $this->_order_by = 'cms_created ASC';
     // This is the fake user we use when the website removes timed content from the site.
     // It's to keep audit trail working.
     $this->website_user_id = 99999;
     $this->website_user_name = 'Website Robot';
     $this->website_user_email = 'website@' . $_SERVER['SERVER_NAME'];
     parent::__construct();
 }
Esempio n. 20
0
 function __construct()
 {
     $this->__table = 'workflow_users';
     $this->_order_by = 'workflow_group_id, cms_created DESC';
     parent::__construct();
     // load the workgroup constants
     include_once BASE_DIR . '/app/controllers/workflow_group_controller.php';
     $this->form_elements['workflow_group_id'] = array('foreignkey', 'workflow_group_id', 'Workflow Group', array('model' => 'workflow_group', 'headline' => 'workflow_title', 'addEmptyOption' => true));
     $this->form_elements['user_id'] = array('foreignkey', 'user_id', 'User', array('model' => 'cms_auth', 'headline' => 'real_name', 'addEmptyOption' => true));
     $this->form_elements['role'] = array('select', 'role', 'Role', array('' => 'Select...', WORKFLOW_ROLE_AUTHOR => 'Author', WORKFLOW_ROLE_EDITOR => 'Editor', WORKFLOW_ROLE_APPROVER => 'Approver'));
     $this->form_required_fields = array('workflow_group_id', 'user_id', 'role');
 }
Esempio n. 21
0
 function __construct()
 {
     $this->__table = 'text';
     // $this->form_required_fields[] = 'content';
     $this->form_elements['content'] = array('textarea', 'content', 'Content', array('class' => 'ckeditor'));
     $this->form_elements['style_class'] = array('select', 'style_class', 'Style', self::style_classes());
     $this->_order_by = 'cms_headline';
     // You can set this to search a database field.
     $this->search_field = 'content';
     // If you want paging off at all times.
     //$this->paging = 0;
     parent::__construct();
 }
Esempio n. 22
0
 /**
  * Class Constructor
  *
  * the constructor of the class. sets the table and field variables
  * as well as the root_node
  *
  * @access	public
  * @author	Tim Glen <*****@*****.**>
  * @param 	int $id the table id to retrieve
  * @param 	string $orderby table fields by which to order the result
  * @return 	null
  */
 function __construct()
 {
     parent::__construct();
     if (defined('TREE_CACHING') && TREE_CACHING == false || false == ($nodes = NCache::getMenu())) {
         $pk = $this->primaryKey();
         $model = clone $this;
         $model->reset();
         if ($model->find()) {
             while ($model->fetch()) {
                 $this->nodes[$model->{$pk}] = $model->toArray();
             }
         }
         unset($model);
         if (defined('TREE_CACHING') && TREE_CACHING != false) {
             NCache::createMenu($this->nodes);
         }
     } else {
         $this->nodes =& $nodes;
     }
 }
Esempio n. 23
0
 function __construct()
 {
     $this->__table = 'html_header';
     $this->_order_by = 'cms_headline';
     parent::__construct();
 }
Esempio n. 24
0
 function __construct()
 {
     $this->__table = 'page_template';
     $this->setHeadline('template_name');
     parent::__construct();
 }
Esempio n. 25
0
 function __construct()
 {
     $this->__table = 'permissions';
     parent::__construct();
 }
Esempio n. 26
0
 function __construct()
 {
     $this->cache =& new Cache_Lite(array('cacheDir' => CACHE_DIR . '/ntercache/', 'lifeTime' => 8));
     parent::__construct();
 }
Esempio n. 27
0
 function __construct()
 {
     $this->__table = 'cms_drafts';
     parent::__construct();
 }
Esempio n. 28
0
 function __construct()
 {
     $this->__table = 'action_track';
     $this->_order_by = 'timestamp DESC';
     parent::__construct();
 }
Esempio n. 29
0
 function __construct()
 {
     $this->__table = 'test_sample';
     parent::__construct();
 }
 function __construct()
 {
     $this->__table = 'cms_nterchange_versions';
     $this->_order_by = 'cms_nterchange_versions.cms_created desc';
     parent::__construct();
 }