*/
public static $_tableName = '{$table.name}';
+ {if $table.icon}
+ /**
+ * Icon associated with this entity.
+ *
+ * @var string
+ */
+ public static $_icon = '{$table.icon}';
+ {/if}
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
parent::__construct( );
{rdelim}
+ /**
+ * Returns localized title of this entity.
+ */
+ public static function getEntityTitle() {ldelim}
+ return ts('{$table.title}');
+ {rdelim}
+
+
+
{if $table.foreignKey || $table.dynamicForeignKey}
/**
* Returns foreign keys and entity references.
{/if}
{if $field.pseudoconstant}
'pseudoconstant' => {$field.pseudoconstant|@print_array},
-{/if} {* field.pseudoconstant *} ),
+{/if}
+ 'add' => {if $field.add}'{$field.add}'{else}NULL{/if},
+),
{/foreach} {* table.fields *}
);
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);