[Owp-cvs] owp/inc/classes twebpage.class,NONE,1.1 towp.class,1.3,1.4
Status: Inactive
Brought to you by:
scader
From: <owp...@li...> - 2006-04-20 23:05:27
|
Update of /cvsroot/owp/owp/inc/classes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17222/inc/classes Modified Files: towp.class Added Files: twebpage.class Log Message: Added twebpage class needed by pages Index: towp.class =================================================================== RCS file: /cvsroot/owp/owp/inc/classes/towp.class,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** towp.class 20 Apr 2006 01:47:01 -0000 1.3 --- towp.class 20 Apr 2006 23:05:19 -0000 1.4 *************** *** 105,109 **** $file = $rfile; ! if(!in_array($file,$this->includes))//if this file isn't exists in list, adding it $this->includes[]=$file; --- 105,109 ---- $file = $rfile; ! if(!in_array($file,$this->includes))//if this file isn't exist in list, adding it $this->includes[]=$file; *************** *** 117,122 **** $this->elements->$page_name = &new $page_name($this,$this,$this); ! //foreach($this->elements->$page_name->requered as $v) ! // $this->create_page($v); return $page_name; --- 117,126 ---- $this->elements->$page_name = &new $page_name($this,$this,$this); ! foreach($this->elements->$page_name->requered as $v){ ! $path = realpath($v.".".files_ext_owp);//building file path ! if(!file_exists($path))//file doesn't exist, error ! trigger_error("OWP Error: File $path, requered by $file doesn't exist.",E_USER_ERROR); ! $this->create_page($path); ! }//\\foreach return $page_name; --- NEW FILE: twebpage.class --- <?php /* Copyright (c) 2006, 2realities Group All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of the 2realities Group nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /** * Contains class for pages * @package owp * @author Artem Sidorenko <ar...@2r...> * @version $Id: twebpage.class,v 1.1 2006/04/20 23:05:19 scader Exp $ * @copyright (c) 2004-2006 2realities Group (www.2realities.com) */ /**our parent*/ include_once 'twebobject.class'; class twebpage extends twebobject{ /**pages we need for working * @var array */ var $includes = array(); }//\\twebpage ?> |