TPLSerializer: | // | offers you the ability save parsed templates to disk | // +----------------------------------------------------------------------+ // | | // | Copyright (C) 2001 R.P.J. Velzeboer, The Netherlands | // | | // | This program is free software; you can redistribute it and/or | // | modify it under the terms of the GNU General Public License | // | as published by the Free Software Foundation; either version 2 | // | of the License, or (at your option) any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | 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 this program; if not, write to the Free Software | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | // | 02111-1307, USA. | // | | // | Author: R.P.J. Velzeboer, rovel@codocad.nl The Netherlands | // | | // +----------------------------------------------------------------------+ // | http://templatepower.codocad.com | // +----------------------------------------------------------------------+ // // $Id: Version 1.0 alpha$ include("./class.TemplatePower.inc.php"); class TPLSerializer extends TemplatePowerParser { var $stpl_file; /********** constructor ***********/ function TPLSerializer( $tpl_file, $stpl_file ) { $this->stpl_file = $stpl_file; TemplatePowerParser::TemplatePowerParser( $tpl_file, T_BYFILE ); } /********** private members ***********/ function __serializeTPL() { $fp = @fopen( $this->stpl_file, "w") or die( $this->__errorAlert('TemplatePower Error: Couldn\'t write [ '. $this->stpl_file .'] for serializing!') ); $stuffToSerialize = Array( defBlock => $this->defBlock, index => $this->index, parent => $this->parent ); fputs( $fp, serialize($stuffToSerialize) ); fclose( $fp ); chmod( $this->stpl_file, 0777 ); } /********** public members ***********/ function doSerialize() { TemplatePowerParser::__prepare(); $this->__serializeTPL(); } } ?>6q4)>Q) $Ҝ3׃ cG9SЌzbvL\rx41`؜w sP[ s]odv^?J|H|$ p$œJ!cqScI!}&ROgQJg= B;8 A5G8*psۧZ,H8ڃvA4%Ii;H<Ա7Pq A),>`J o` S +4 ~\a!AUrqBzS9JFIFC  !"$"$CZx" PG"MTHyFszf'[n@Yf3SF@1SI1 )\\Nz8U6<#wD=9iOuq)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