public function ModelAdminItems() {
		if($this->ModelAdminModel) {
			$SNG= Injector::inst()->get($this->ModelAdminModel);
			if($SNG->hasExtension("Versioned")) {
				Versioned::reading_stage("Stage");
			}
			$records = DataList::create($this->ModelAdminModel)
				->limit($this->Count)
				->sort("LastEdited DESC");
			$url_segment = Injector::inst()->get($this->ModelAdminClass)->Link();
			$ret = ArrayList::create(array());
			foreach($records as $rec) {
				$rec->EditLink = Controller::join_links(
					$url_segment,
					$this->ModelAdminModel,
					"EditForm",
					"field",
					$this->ModelAdminModel,
					"item",
					$rec->ID,
					"edit"
				);
				$ret->push($rec);
			}
			return $ret;
		}
	}
public function ModelAdminItems() {
		if($this->ModelAdminModel) {
			$SNG= Injector::inst()->get($this->ModelAdminModel);
			if($SNG->hasExtension("Versioned")) {
				Versioned::reading_stage("Stage");
			}
			$records = DataList::create($this->ModelAdminModel)
				->limit($this->Count)
				->sort("LastEdited DESC");
			$url_segment = Injector::inst()->get($this->ModelAdminClass)->Link();
			$ret = ArrayList::create(array());
			foreach($records as $rec) {
				$rec->EditLink = Controller::join_links(
					$url_segment,
					$this->ModelAdminModel,
					"EditForm",
					"field",
					$this->ModelAdminModel,
					"item",
					$rec->ID,
					"edit"
				);
				$ret->push($rec);
			}
			return $ret;
		}
	}
public function ModelAdminItems ( ) { if ( $ this -> ModelAdminModel ) { $ SNG = Injector :: inst ( ) -> get ( $ this -> ModelAdminModel ) ; if ( $ SNG -> hasExtension ( "Versioned" ) ) { Versioned :: reading_stage ( "Stage" ) ; } $ records = DataList :: create ( $ this -> ModelAdminModel ) -> limit ( $ this -> Count ) -> sort ( "LastEdited DESC" ) ; $ url_segment = Injector :: inst ( ) -> get ( $ this -> ModelAdminClass ) -> Link ( ) ; $ ret = ArrayList :: create ( array ( ) ) ; foreach ( $ records as $ rec ) { $ rec -> EditLink = Controller :: join_links ( $ url_segment , $ this -> ModelAdminModel , "EditForm" , "field" , $ this -> ModelAdminModel , "item" , $ rec -> ID , "edit" ) ; $ ret -> push ( $ rec ) ; } return $ ret ; } }
Gets the records in this ModelAdmin summary. Provides edit links and a title label

@return ArrayList
Gets the records in this ModelAdmin summary . Provides edit links and a title label