Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/languages/phrases_cache.php
<?php | <?php | ||||
/** | /** | ||||
* @version $Id$ | * @version $Id$ | ||||
* @package In-Portal | * @package In-Portal | ||||
* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved. | * @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved. | ||||
* @license GNU/GPL | * @license GNU/GPL | ||||
* In-Portal is Open Source software. | * In-Portal is Open Source software. | ||||
* This means that this software may have been modified pursuant | * This means that this software may have been modified pursuant | ||||
* the GNU General Public License, and as distributed it includes | * the GNU General Public License, and as distributed it includes | ||||
* or is derivative of works licensed under the GNU General Public License | * or is derivative of works licensed under the GNU General Public License | ||||
* or other free or open source software licenses. | * or other free or open source software licenses. | ||||
* See http://www.in-portal.org/license for copyright notices and details. | * See http://www.in-portal.org/license for copyright notices and details. | ||||
*/ | */ | ||||
defined('FULL_PATH') or die('restricted access!'); | defined('FULL_PATH') or die('restricted access!'); | ||||
class PhrasesCache extends kBase { | class kPhraseCache extends kBase | ||||
{ | |||||
var $Phrases = Array(); | var $Phrases = Array(); | ||||
var $Ids = Array(); | var $Ids = Array(); | ||||
var $OriginalIds = Array(); //for comparing cache | var $OriginalIds = Array(); //for comparing cache | ||||
var $LanguageId = null; | var $LanguageId = null; | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 380 Lines • ▼ Show 20 Line(s) | |||||
function escapeTagReserved($text) | function escapeTagReserved($text) | ||||
{ | { | ||||
$reserved = Array('"', "'"); // = | $reserved = Array('"', "'"); // = | ||||
$replacement = Array('\"', "\'"); // \= | $replacement = Array('\"', "\'"); // \= | ||||
return str_replace($reserved, $replacement, $text); | return str_replace($reserved, $replacement, $text); | ||||
} | } | ||||
} | } | ||||
No newline at end of file |