AAAAhome/academiac/www/libraries/joomla/log/entry.php000064400000004240151374605450016111 0ustar00priorities}. * @param string $category Type of entry * @param string $date Date of entry (defaults to now if not specified or blank) * * @since 11.1 */ public function __construct($message, $priority = JLog::INFO, $category = '', $date = null) { $this->message = (string) $message; // Sanitize the priority. if (!in_array($priority, $this->priorities, true)) { $priority = JLog::INFO; } $this->priority = $priority; // Sanitize category if it exists. if (!empty($category)) { $this->category = (string) strtolower(preg_replace('/[^A-Z0-9_\.-]/i', '', $category)); } // Get the date as a JDate object. $this->date = new JDate($date ? $date : 'now'); } }