Changeset View
Changeset View
Standalone View
Standalone View
modules/in-link/units/listings/listings_config.php
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | |||||
'' => Array ( | '' => Array ( | ||||
'Sorting' => Array ('PurchasedOn' => 'desc'), | 'Sorting' => Array ('PurchasedOn' => 'desc'), | ||||
) | ) | ||||
), | ), | ||||
'CalculatedFields' => Array ( | 'CalculatedFields' => Array ( | ||||
'' => Array ( | '' => Array ( | ||||
'LinkName' => 'CONCAT(item_table.Name, " (", item_table.Url, ")")', | 'LinkName' => 'CONCAT(item_table.Name, " (", item_table.Url, ")")', | ||||
'LinkOwner' => 'IF (ISNULL(u.Username), IF (item_table.CreatedById = ' . USER_ROOT . ', "root", IF (item_table.CreatedById = ' . USER_GUEST . ', "Guest", "n/a")), IF(u.Username = "", u.Email, u.Username))', | 'LinkOwner' => 'IF (ISNULL(u.Username), IF (item_table.CreatedById = ' . USER_ROOT . ', "root", IF (item_table.CreatedById = ' . USER_GUEST . ', "Guest", IF (item_table.CreatedById = ' . USER_SYSTEM . ', "system", "n/a"))), IF(u.Username = "", u.Email, u.Username))', | ||||
), | ), | ||||
), | ), | ||||
'Fields' => Array ( | 'Fields' => Array ( | ||||
'ListingId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), | 'ListingId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0,), | ||||
'ListingTypeId' => Array ( | 'ListingTypeId' => Array ( | ||||
'type' => 'int', | 'type' => 'int', | ||||
'formatter' => 'kOptionsFormatter', | 'formatter' => 'kOptionsFormatter', | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |