コード例 #1
0
ファイル: Slot.php プロジェクト: sushantpaste/civibooking
 /**
  * returns the list of fields that can be imported
  *
  * @access public
  * return array
  * @static
  */
 static function &import($prefix = false)
 {
     if (!self::$_import) {
         self::$_import = array();
         $fields = self::fields();
         foreach ($fields as $name => $field) {
             if (CRM_Utils_Array::value('import', $field)) {
                 if ($prefix) {
                     self::$_import['booking_slot'] =& $fields[$name];
                 } else {
                     self::$_import[$name] =& $fields[$name];
                 }
             }
         }
     }
     return self::$_import;
 }