00001 <?php
00005 class View_SDRResourceDetails extends SDRModel {
00006 private static $DBI_NAME = 'SDR2';
00007 private static $TABLE_NAME = 'view_SDRResourceDetails';
00008 private static $PRIMARY_KEY = 'resourceId';
00009 private static $ATTRIBUTES = array(
00010
00011 'title' => array('array' => false, 'type' => 'string'),
00012 'cserdId' => array('array' => false, 'type' => 'int'),
00013 'url' => array('array' => false, 'type' => 'string'),
00014 'releaseFlag' => array('array' => false, 'type' => 'int'),
00015 'primaryProjectName' => array('array' => false, 'type' => 'string'),
00016 'numPendingVersions' => array('array' => false, 'type' => 'int'),
00017 'numDevVersions' => array('array' => false, 'type' => 'int'),
00018 'numLiveVersions' => array('array' => false, 'type' => 'int')
00019 );
00020
00029 public function __construct($constraints = array()) {
00030 parent::__construct();
00031
00032 $this->registerAttributes(self::$ATTRIBUTES);
00033 $this->registerTableName(self::$TABLE_NAME);
00034 $this->registerPrimaryKey(self::$PRIMARY_KEY);
00035
00036 if ($constraints)
00037 $this->populate($constraints);
00038 }
00039
00048 public function commit($updateObj = false) {
00049 return true;
00050 }
00051
00060 protected function setXMLImpl($xml) {
00061 return true;
00062 }
00063
00075 public static function getList($constraints = array(), $limit = array(),
00076 $order = array(), $count = false) {
00077 return self::getListBase(SDRService::getDBI(), $constraints, $limit,
00078 $order, $count, 'view_SDRResourceDetails');
00079 }
00080
00081 public static function getAttributesStatic() {
00082 return self::$ATTRIBUTES;
00083 }
00084
00085 public static function getTableNameStatic() {
00086 return self::$TABLE_NAME;
00087 }
00088
00089 }
00090
00091 ?>