public static function getRecordById($type, $id) { $record = parent::getRecordById($type, $id); if (!$record) { return false; } // Add the ctime by getting view ctime $data = self::getRecordDataById($type, $id); if (!$data) { return false; } // As block_instances do not have certain fields we need to get their // info either from the view they are on or from their configdata $record->ctime = parent::checkctime($data->ctime); $record->description = $data->description; $record->owner = $data->owner; $record->group = $data->group; $record->institution = $data->institution; // Access: get all the views where the block_instance is included $access = self::view_access_records($id); $accessObj = self::access_process($access); $record->access = $accessObj; $record->secfacetterm = self::$secfacetterm; // AS the field "sort" is not analyzed, we need to clean it (remove html tags & lowercase) $record->sort = strtolower(strip_tags($record->title)); return $record; }