예제 #1
0
파일: Managed.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), 'module' => array('name' => 'module', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Module'), 'required' => true, 'maxlength' => 127, 'size' => CRM_Utils_Type::HUGE), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'maxlength' => 127, 'size' => CRM_Utils_Type::HUGE), 'entity_type' => array('name' => 'entity_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Entity Type'), 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'entity_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true));
     }
     return self::$_fields;
 }
예제 #2
0
파일: Managed.php 프로젝트: agroknow/mermix
 /**
  * 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('Managed ID'), 'description' => 'Surrogate Key', 'required' => true), 'module' => array('name' => 'module', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Module'), 'description' => 'Name of the module which declared this object', 'required' => true, 'maxlength' => 127, 'size' => CRM_Utils_Type::HUGE), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'description' => 'Symbolic name used by the module to identify the object', 'maxlength' => 127, 'size' => CRM_Utils_Type::HUGE), 'entity_type' => array('name' => 'entity_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Entity Type'), 'description' => 'API entity type', 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'entity_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Entity ID'), 'description' => 'Foreign key to the referenced item.', 'required' => true), 'cleanup' => array('name' => 'cleanup', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Cleanup Setting'), 'description' => 'Policy on when to cleanup entity (always, never, unused)', 'maxlength' => 32, 'size' => CRM_Utils_Type::MEDIUM, 'html' => array('type' => 'Select'), 'pseudoconstant' => array('callback' => 'CRM_Core_ManagedEntities::getCleanupOptions')));
     }
     return self::$_fields;
 }