[Cs-webapplibs-commits] SF.net SVN: cs-webapplibs:[179] trunk/0.3/abstract/cs_singleTableHandler. a
Status: Beta
Brought to you by:
crazedsanity
From: <cra...@us...> - 2010-07-09 16:43:36
|
Revision: 179 http://cs-webapplibs.svn.sourceforge.net/cs-webapplibs/?rev=179&view=rev Author: crazedsanity Date: 2010-07-09 16:43:30 +0000 (Fri, 09 Jul 2010) Log Message: ----------- Declare __construct() as public, change get_single_record() to protected. Modified Paths: -------------- trunk/0.3/abstract/cs_singleTableHandler.abstract.class.php Modified: trunk/0.3/abstract/cs_singleTableHandler.abstract.class.php =================================================================== --- trunk/0.3/abstract/cs_singleTableHandler.abstract.class.php 2010-07-08 16:08:46 UTC (rev 178) +++ trunk/0.3/abstract/cs_singleTableHandler.abstract.class.php 2010-07-09 16:43:30 UTC (rev 179) @@ -29,7 +29,7 @@ * @param $pkeyField (str) Name of the primary key field, for performing updates & retrieving specific records. * @param $cleanStringArr (array) Array of {fieldName}=>{dataType} for allowing updates & creating records. */ - function __construct(cs_phpDB $dbObj, $tableName, $seqName, $pkeyField, array $cleanStringArr) { + public function __construct(cs_phpDB $dbObj, $tableName, $seqName, $pkeyField, array $cleanStringArr) { $this->set_version_file_location(dirname(__FILE__) . '/../VERSION'); parent::__construct(true); @@ -136,7 +136,7 @@ * @RETURN (array) SUCCESS: returns single record with all fields. * @EXCEPTION FAIL: exception indicates error */ - public function get_single_record($fieldname, $value, $orderBy=null, $limit=null, $offset=null) { + protected function get_single_record($fieldname, $value, $orderBy=null, $limit=null, $offset=null) { $data = $this->get_records(array($fieldname=>$value), $orderBy, $limit, $offset); $keys = array_keys($data); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |