本文整理汇总了PHP中Pommo::toggleEscaping方法的典型用法代码示例。如果您正苦于以下问题:PHP Pommo::toggleEscaping方法的具体用法?PHP Pommo::toggleEscaping怎么用?PHP Pommo::toggleEscaping使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pommo
的用法示例。
在下文中一共展示了Pommo::toggleEscaping方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct($toggleEscaping = true)
{
if ($toggleEscaping) {
Pommo::logErrors();
// PHP Errors are logged, turns display_errors off.
Pommo::toggleEscaping();
// Wraps _T and logger responses with htmlspecialchars()
}
$this->_output = array('success' => false, 'messages' => array(), 'errors' => array());
$this->_successMsg = $this->_failMsg = false;
}
示例2: explode
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
* the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with program; see the file docs/LICENSE. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require '../bootstrap.php';
require_once Pommo::$_baseDir . 'classes/Pommo_Subscribers.php';
require_once Pommo::$_baseDir . 'classes/Pommo_Fields.php';
require_once Pommo::$_baseDir . 'classes/Pommo_Groups.php';
Pommo::init();
$logger =& Pommo::$_logger;
$dbo =& Pommo::$_dbo;
Pommo::toggleEscaping(TRUE);
$state = Pommo_API::stateInit('subscribers_manage');
$fields = Pommo_Fields::get();
$ids = FALSE;
if (!empty($_POST['ids'])) {
$ids = explode(',', $_POST['ids']);
}
// ====== CSV EXPORT ======
if ($_POST['type'] == 'csv') {
if (!$ids) {
$group = new Pommo_Groups($state['group'], $state['status']);
$subscribers = $group->members();
} else {
$subscribers = Pommo_Subscribers::get(array('id' => $ids));
}
// supply headers