Source for file ABSTSourceObject.class.php
Documentation is available at ABSTSourceObject.class.php
* For including this file you have to define the constant "CLASSPATH".
* Because every include in the framework depends on the CLASSPATH definition.
* The CLASSPATH means the relative path to the folder that contains the
echo "<h3>You have to define the constant CLASSPATH!</h3>\n";
echo "Example: define( 'CLASSPATH', '../path/to/classes/' );\n";
* Including the basic class of all HTML-tags.
require_once( CLASSPATH. "html/ABSTDimensionObject.class.php" );
* @author Daniel Plücken <daniel@debakel.net>
* @license http://www.gnu.org/copyleft/lesser.html
* GNU Lesser General Public License
* @copyright Copyright (C) 2006 Daniel Plücken <daniel@debakel.net>
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License.
* This library 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 Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA
* The path of the source to the image.
* The Constructor let the script die, cause this is an abstract class!
* @author Daniel Plücken <daniel@debakel.net>
"ABSTSourceObject is an abstract class. "
. "You cannot create an instance of it."
* Sets the source of this image.
* @author Daniel Plücken <daniel@debakel.net>
* @param boolean $validate_path
function setSRC( $string, $validate_path = true )
"!^(?:[a-z]+:(?:\\\\|//))?"
. "(?:[-._a-z0-9]+[\\\\/])*"
. "[-?=&_a-z0-9]+$!i", $string
echo "<b>The value \"". $string. "\" is not a valid URL.<br>"
. "The value has to be a correct path to a file!</b><br>\r\n";
} // End of class ABSTSourceObject
|