00001 <?php
00005 class View_SDRResourceMinimal extends SDRModel {
00006 private static $DBI_NAME = 'SDR2';
00007 private static $TABLE_NAME = 'view_sdrresourceminimal';
00008 private static $PRIMARY_KEY = 'cserdId';
00009 private static $ATTRIBUTES = array(
00010 'cserdId' => array('array' => false, 'type' => 'int'),
00011 'url' => array('array' => false, 'type' => 'string'),
00012 'title' => array('array' => false, 'type' => 'string')
00013 );
00014
00023 public function __construct($constraints = array()) {
00024 parent::__construct();
00025
00026 $this->registerAttributes(self::$ATTRIBUTES);
00027 $this->registerTableName(self::$TABLE_NAME);
00028 $this->registerPrimaryKey(self::$PRIMARY_KEY);
00029
00030 if ($constraints)
00031 $this->populate($constraints);
00032 }
00033
00042 public function commit($updateObj = false) {
00043 return true;
00044 }
00045
00054 protected function setXMLImpl($xml) {
00055 return true;
00056 }
00057
00069 public static function getList($constraints = array(), $limit = array(),
00070 $order = array(), $count = false) {
00071 return self::getListBase(SDRService::getDBI(), $constraints, $limit,
00072 $order, $count, 'view_sdrresourceminimal');
00073 }
00074
00075 public static function getAttributesStatic() {
00076 return self::$ATTRIBUTES;
00077 }
00078
00079 public static function getTableNameStatic() {
00080 return self::$TABLE_NAME;
00081 }
00082
00083 }
00084
00085 ?>