[geeklog-cvs] Geeklog-2.x/plugins/content/models/manager/base BaseGl2ContentManager.php, NONE, 1.1

Damien Hodgkin dhodgkin at qs1489.pair.com
Wed Aug 8 16:23:47 EDT 2007


Update of /cvsroot/geeklog2/Geeklog-2.x/plugins/content/models/manager/base
In directory qs1489.pair.com:/tmp/cvs-serv13905/plugins/content/models/manager/base

Added Files:
	BaseGl2ContentManager.php 
Log Message:
Second commit

--- NEW FILE: BaseGl2ContentManager.php ---
<?php

require_once(getOption('path_plugins') . 'content/models/Gl2Content.php');
require_once 'Geeklog/DAO/DAOFactory.php';

/**
 * Base manager class representing the API for a row from the 'gl2_content' table.
 *
 * This class was autogenerated by Phing on:
 *
 * 07/07/07 14:41:12
 *
 * @package plugins.content.models.manager.base
 */
abstract class BaseGl2ContentManager  {


	/**
	 * Retrieves the Gl2Content by the specified id.
	 * 
	 * @param int $contentId
	 * @return Gl2Content
	 */
	public static function &getGl2Content($contentId) {
		if (is_null($contentId)) {
		    throw new Exception('The parameter, $contentId, to the call to the getGl2Content() method of the BaseGl2ContentManager class was null.');
		}
		if (!is_int($contentId)) {
		    throw new Exception('The parameter, $contentId, to the call to the getGl2Content() method of the BaseGl2ContentManager class was not of the expected type, int.');
		}
	    $associatedClass = new Gl2Content();
    	    $associatedClass->setContentId($contentId);
	    $dao = Geeklog_DAO_DAOFactory::createDAO();
	    return $dao->get($associatedClass);
	} 


	/**
	 * Saves the Gl2Content.
	 * 
	 * @param Gl2Content $gl2Content
	 */
	public static function saveGl2Content(Gl2Content &$gl2Content) {
	    $dao = Geeklog_DAO_DAOFactory::createDAO();
	    return $dao->save($gl2Content);
	} 


	/**
	 * Deletes the Gl2Content.
	 * 
	 * @param Gl2Content $gl2Content
	 */
	public static function deleteGl2Content(Gl2Content &$gl2Content) {
	    $dao = Geeklog_DAO_DAOFactory::createDAO();
	    return $dao->delete($gl2Content);
	} 

} // BaseGl2ContentManager
?>



More information about the geeklog-cvs mailing list