- $sql = 'SELECT '.$object->IDField.' FROM '.$object->TableName.' WHERE ('.$parent_info['ForeignKey'].' = '.$parent_info['ParentId'].') AND (EventId = '.$email_event_id.')';
- trigger_error('<span class="debug_error">Invalid email event name</span> <b>'.$email_event.'</b>. Use only <b>UPPERCASE characters</b> and <b>dots</b> as email event names', E_USER_ERROR);
- $country_id = $this->Conn->GetOne('SELECT DestId FROM '.TABLE_PREFIX.'StdDestinations WHERE DestType=1 AND DestAbbr = '.$this->Conn->qstr($country_abbr));
- * Check current user permissions based on it's group permissions in specified category (for non-system permissions) or just checks if system permission is set
- *
- * @param string $name permission name
- * @param int $cat_id category id, current used if not specified
- * @param int $type permission type {1 - system, 0 - per category}
- * @return int
- */
- function CheckPermission($name, $type = 1, $cat_id = null)