public function __construct() { parent::__construct('termlist'); $this->columns = array('id' => '', 'title' => '', 'description' => '', 'website' => ''); $this->pagetitle = "Term lists"; $this->set_website_access('editor'); }
public function __construct() { parent::__construct('location'); $this->columns = array('id' => '', 'website' => '', 'name' => '', 'code' => '', 'type' => '', 'centroid_sref' => ''); $this->pagetitle = "Locations"; $this->set_website_access('editor'); }
public function __construct() { parent::__construct('sample'); $this->pagetitle = 'Samples'; $this->columns = array('id' => 'ID', 'website' => 'Website', 'survey' => 'Survey', 'entered_sref' => 'Spatial Ref.', 'location' => 'Location', 'date_start' => 'Date'); $this->set_website_access('editor'); }
/** * Constructor */ public function __construct() { parent::__construct('website'); $this->columns = array('id' => 'ID', 'title' => '', 'description' => '', 'url' => ''); $this->pagetitle = "Websites"; $this->set_website_access('admin'); }
public function __construct() { parent::__construct($this->prefix . '_attribute', 'custom_attribute/index'); $this->pagetitle = ucwords(str_replace('_', ' ', $this->prefix)) . ' Attributes'; $this->columns = array('id' => '', 'website' => '', 'survey' => '', 'caption' => '', 'data_type' => 'Data type'); $this->set_website_access('admin'); }
public function __construct() { parent::__construct('user'); $this->columns = array('name' => '', 'username' => '', 'core_role' => ''); $this->pagetitle = "Users"; $this->model = new User_Model(); $websites = $this->get_allowed_website_id_list('admin'); if (!is_null($websites)) { // If not core admin, then you can only edit a person if they have a role on one of your websites that you administer or // you created the user $people_id_values = array(); $list = $this->db->select('people.id')->from('people')->join('users', 'users.person_id', 'people.id')->join('users_websites', 'users_websites.user_id', 'users.id')->where('users_websites.site_role_id IS NOT ', null)->where('users.core_role_id IS ', null)->where('people.deleted', 'false')->in('users_websites.website_id', $websites)->get(); foreach ($list as $item) { $people_id_values[] = $item->id; } // Also let you edit users that you created $list = $this->db->select('people.id')->from('people')->join('users', 'users.person_id', 'people.id', 'LEFT')->where('people.created_by_id', $_SESSION['auth_user']->id)->where('users.core_role_id IS ', null)->where('people.deleted', 'false')->get(); foreach ($list as $item) { $people_id_values[] = $item->id; } // Remove duplicates $people_id_values = array_unique($people_id_values, SORT_NUMERIC); $this->auth_filter = array('field' => 'person_id', 'values' => $people_id_values); } }
public function __construct() { parent::__construct('survey'); $this->columns = array('id' => '', 'title' => '', 'description' => '', 'website' => ''); $this->pagetitle = "Survey datasets"; $this->set_website_access('admin'); }
public function __construct() { parent::__construct('taxon_group'); $this->columns = array('title' => ''); $this->pagetitle = "Taxon Groups"; $this->session = Session::instance(); }
public function __construct() { parent::__construct('taxon_designation', 'taxon_designation/index'); $this->columns = array('id' => '', 'title' => '', 'category' => ''); $this->pagetitle = "Taxon Designations"; $this->model = ORM::factory('taxon_designation'); }
public function __construct() { parent::__construct('person'); $this->columns = array('first_name' => '', 'surname' => '', 'initials' => '', 'email_address' => ''); $this->pagetitle = "People"; $this->model = new Person_Model(); $this->flag_warning = null; $websites = $this->get_allowed_website_id_list('editor'); if (!is_null($websites)) { // If not core admin, then you can only edit a person if they have a role on one of your websites that you administer or // you created the user $list = $this->db->select('people.id')->from('people')->join('users', 'users.person_id', 'people.id')->join('users_websites', 'users_websites.user_id', 'users.id')->where('users_websites.site_role_id IS NOT ', null)->where('users.core_role_id IS ', null)->where('people.deleted', 'false')->in('users_websites.website_id', $websites)->get(); foreach ($list as $person) { $person_id_values[] = $person->id; } // Also let you edit people that you created unless they have been promoted to core admin $list = $this->db->select('people.id')->from('people')->join('users', 'users.person_id', 'people.id', 'LEFT')->where('people.created_by_id', $_SESSION['auth_user']->id)->where('users.core_role_id IS ', null)->where('people.deleted', 'false')->get(); foreach ($list as $person) { $person_id_values[] = $person->id; } // Remove duplicates $person_id_values = array_unique($person_id_values, SORT_NUMERIC); $this->auth_filter = array('field' => 'id', 'values' => $person_id_values); } }
public function __construct() { parent::__construct('verification_rule', 'verification_rule/index'); $this->columns = array('title' => '', 'description' => '', 'test_type' => ''); $this->pagetitle = "Verification Rules"; $this->model = ORM::factory('verification_rule'); }
public function __construct() { parent::__construct('subject_observation'); $this->pagetitle = 'Subject Observations'; $this->actionColumns = array('Edit Sub' => 'subject_observation/edit/{id}', 'Edit Smp' => 'sample/edit/{sample_id}'); $this->columns = array('id' => 'ID', 'survey' => 'Survey', 'taxa' => 'Taxa', 'subject_type' => 'Subject type', 'count' => 'Count', 'short_comment' => 'Comment', 'entered_sref' => 'Spatial Ref', 'date_start' => 'Date'); $this->set_website_access('editor'); }
public function __construct() { parent::__construct('taxa_taxon_list', null, null, 'taxa_taxon_list'); $this->base_filter['parent_id'] = null; $this->base_filter['preferred'] = 't'; $this->columns = array('taxon' => '', 'authority' => '', 'taxon_group' => 'Taxon Group', 'language' => '', 'taxonomic_sort_order' => 'Sort Order'); $this->pagetitle = "Species"; }
public function __construct() { parent::__construct('termlists_term', 'termlists_term/index'); $this->base_filter['parent_id'] = null; $this->base_filter['preferred'] = 't'; $this->columns = array('id' => '', 'term' => '', 'language' => '', 'sort_order' => 'Sort Order'); $this->pagetitle = "Terms"; }
/** * Constructor */ public function __construct() { parent::__construct('user_identifier'); $this->columns = array('identifier' => 'Identifier', 'type' => ''); $this->pagetitle = "User identifiers"; // @todo Users should have access to their own identifiers $this->set_website_access('admin'); }
public function __construct() { parent::__construct('milestone'); $this->pagetitle = "Milestones"; //Contruct the grid columns that will appear on the websites page milestones tab. $this->columns = array('id' => '', 'title' => '', 'awarded_by' => ''); $this->set_website_access('admin'); }
public function __construct() { parent::__construct('occurrence'); $this->pagetitle = 'Occurrences'; $this->actionColumns = array('Edit Occ' => 'occurrence/edit/{id}', 'Edit Smp' => 'sample/edit/{sample_id}'); $this->columns = array('id' => 'ID', 'website' => 'Website', 'survey' => 'Survey', 'taxon' => 'Taxon', 'entered_sref' => 'Spatial Ref', 'date_start' => 'Date'); $this->set_website_access('editor'); }
/** * Constructor */ public function __construct() { parent::__construct('taxon_rank'); $this->columns = array('id' => '', 'rank' => '', 'sort_order' => ''); $this->pagetitle = "Taxon ranks"; }
public function __construct() { parent::__construct('survey_medium'); $this->columns = array('id' => 'ID', 'caption' => '', 'path' => 'Media', 'media_type' => 'Type'); $this->pagetitle = "Media files"; }
public function __construct() { parent::__construct('survey_comment'); $this->columns = array('comment' => '', 'updated_on' => 'Updated on'); $this->pagetitle = "Survey Comments"; }
/** * Constructor */ public function __construct() { parent::__construct('trigger'); $this->columns = array('name' => '', 'description' => '', 'created_by_name' => 'Owner'); $this->pagetitle = "Triggers"; }
/** * Constructor */ public function __construct() { parent::__construct('taxon_relation_type'); $this->columns = array('caption' => '', 'forward_term' => '', 'reverse_term' => '', 'relation_code' => ''); $this->pagetitle = "Taxon Relation Types"; }
public function __construct() { parent::__construct('taxon_relation'); $this->columns = array('my_taxon' => '', 'term' => '', 'other_taxon' => ''); $this->pagetitle = "Relationships"; }
public function __construct() { parent::__construct('known_subject_comment'); $this->columns = array('comment' => '', 'updated_on' => 'Updated on'); $this->pagetitle = "Known Subject Comments"; }
public function __construct() { parent::__construct('summariser_definition'); $this->columns = array('title' => 'Survey title', 'website' => ''); $this->pagetitle = "Survey based data summariser definition"; }
/** * Constructor */ public function __construct() { parent::__construct('known_subject'); $this->columns = array('id' => 'ID', 'taxa' => '', 'subject_type' => '', 'short_description' => 'Description'); $this->pagetitle = "Known Subjects"; }
public function __construct() { parent::__construct('taxon_groups_taxon_list', 'taxon_groups_taxon_list/index', null, 'taxon_groups_taxon_list'); $this->columns = array('title' => 'Taxon Group'); $this->pagetitle = "Taxon Groups"; }
/** * Constructor */ public function __construct() { parent::__construct('language'); $this->columns = array('iso' => '', 'language' => ''); $this->pagetitle = "Languages"; }
public function __construct() { parent::__construct('occurrence_comment'); $this->columns = array('comment' => '', 'updated_on' => 'Updated on'); $this->pagetitle = "Occurrence Comments"; }
/** * Constructor */ public function __construct() { parent::__construct('taxon_code'); $this->columns = array('code' => ''); $this->pagetitle = "Codes"; }