示例#1
0
文件: Widget.php 项目: hguru/224Civi
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'contribution_page_id' => array('name' => 'contribution_page_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contribute_DAO_ContributionPage'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Title'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_logo' => array('name' => 'url_logo', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Url Logo'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'button_title' => array('name' => 'button_title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Button Title'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'about' => array('name' => 'about', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('About')), 'url_homepage' => array('name' => 'url_homepage', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Url Homepage'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'color_title' => array('name' => 'color_title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Color Title'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_button' => array('name' => 'color_button', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Color Button'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_bar' => array('name' => 'color_bar', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Color Bar'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_main_text' => array('name' => 'color_main_text', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Color Main Text'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_main' => array('name' => 'color_main', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Color Main'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_main_bg' => array('name' => 'color_main_bg', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Color Main Bg'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_bg' => array('name' => 'color_bg', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Color Bg'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_about_link' => array('name' => 'color_about_link', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Color About Link'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_homepage_link' => array('name' => 'color_homepage_link', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Color Homepage Link'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE));
     }
     return self::$_fields;
 }
示例#2
0
 /**
  * Returns all the column names of this table
  *
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Widget ID'), 'description' => 'Contribution Id', 'required' => true), 'contribution_page_id' => array('name' => 'contribution_page_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contribution Page'), 'description' => 'The Contribution Page which triggered this contribution', 'FKClassName' => 'CRM_Contribute_DAO_ContributionPage'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Enabled?'), 'description' => 'Is this property active?'), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Widget Title'), 'description' => 'Widget title.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_logo' => array('name' => 'url_logo', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Widget Image Url'), 'description' => 'URL to Widget logo', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'button_title' => array('name' => 'button_title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Button Title'), 'description' => 'Button title.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'about' => array('name' => 'about', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Description'), 'description' => 'About description.'), 'url_homepage' => array('name' => 'url_homepage', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Homepage Url'), 'description' => 'URL to Homepage.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'color_title' => array('name' => 'color_title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Title Color'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_button' => array('name' => 'color_button', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Button Colour'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_bar' => array('name' => 'color_bar', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Bar Color'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_main_text' => array('name' => 'color_main_text', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Main Text Color'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_main' => array('name' => 'color_main', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Main Colour'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_main_bg' => array('name' => 'color_main_bg', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Backgroup Color'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_bg' => array('name' => 'color_bg', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Other Backgroun Colour'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_about_link' => array('name' => 'color_about_link', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('About Link Colour'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE), 'color_homepage_link' => array('name' => 'color_homepage_link', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Homepage Link Colour'), 'maxlength' => 10, 'size' => CRM_Utils_Type::TWELVE));
     }
     return self::$_fields;
 }