<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
*/
/**
- *
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2014
*
* static instance to hold the table name
*
* @var string
- * @static
*/
static $_tableName = '{$table.name}';
* static instance to hold the field values
*
* @var array
- * @static
*/
static $_fields = null;
* static instance to hold the keys used in $_fields for each field.
*
* @var array
- * @static
*/
static $_fieldKeys = null;
* static instance to hold the FK relationships
*
* @var string
- * @static
*/
static $_links = null;
* be imported
*
* @var array
- * @static
*/
static $_import = null;
* be exported
*
* @var array
- * @static
*/
static $_export = null;
* this table in the civicrm_log table
*
* @var boolean
- * @static
*/
static $_log = {$table.log};
/**
* class constructor
*
- * @access public
* @return {$table.name}
*/
function __construct( ) {ldelim}
{if $table.foreignKey || $table.dynamicForeignKey}
/**
- * return foreign keys and entity references
+ * Returns foreign keys and entity references
*
- * @static
- * @access public
- * @return array of CRM_Core_Reference_Interface
+ * @return array
+ * [CRM_Core_Reference_Interface]
*/
static function getReferenceColumns() {ldelim}
if (!self::$_links) {ldelim}
{/if} {* table.foreignKey *}
/**
- * returns all the column names of this table
+ * Returns all the column names of this table
*
- * @access public
* @return array
*/
static function &fields( ) {ldelim}
* Returns an array containing, for each field, the arary key used for that
* field in self::$_fields.
*
- * @access public
* @return array
*/
static function &fieldKeys( ) {ldelim}
{rdelim}
/**
- * returns the names of this table
+ * Returns the names of this table
*
- * @access public
- * @static
* @return string
*/
static function getTableName( ) {ldelim}
{rdelim}
/**
- * returns if this table needs to be logged
+ * Returns if this table needs to be logged
*
- * @access public
* @return boolean
*/
function getLog( ) {ldelim}
{rdelim}
/**
- * returns the list of fields that can be imported
+ * Returns the list of fields that can be imported
+ *
+ * @param bool $prefix
*
- * @access public
- * return array
- * @static
+ * @return array
*/
static function &import( $prefix = false ) {ldelim}
if ( ! ( self::$_import ) ) {ldelim}
{rdelim}
/**
- * returns the list of fields that can be exported
- *
- * @access public
- * return array
- * @static
- */
+ * Returns the list of fields that can be exported
+ *
+ * @param bool $prefix
+ *
+ * @return array
+ */
static function &export( $prefix = false ) {ldelim}
if ( ! ( self::$_export ) ) {ldelim}
self::$_export = array ( );