function applyFilters($q, $au)
{
- $tn = $this->tableName();
+
+ $tn = $this->tableName();
$this->selectAdd("i18n_translate('c' , {$tn}.country, 'en') as country_display_name ");
$tn = $this->tableName();
){
$roo->jerr('This company is not allow to delete');
}
+ }
+ function onDelete()
+ {
$img = DB_DataObject::factory('Images');
$img->ontable = $this->tableName();
$img->onid = $this->id;
$companies->insert();
$companies->onInsert(array(), $roo);
}
- function lookupOwner()
+ static function lookupOwner()
{
$enum = DB_DataObject::Factory('core_enum')->lookup('COMPTYPE', 'OWNER' );
$companies = DB_DataObject::factory('core_company');
{
$affects = array();
- $all_links = $GLOBALS['_DB_DATAOBJECT']['LINKS'][$this->_database];
+ $all_links = $x->databaseLinks();
foreach($all_links as $tbl => $links) {
foreach($links as $col => $totbl_col) {