public function GridFieldItems() {
		if($grid = $this->getGrid()) {
			$list = $grid->getList()
				->limit($this->Count)
				->sort("LastEdited DESC");
			$ret = ArrayList::create(array());
			foreach($list as $record) {
				$record->EditLink = Controller::join_links(
					Injector::inst()->get("CMSMain")->Link("edit"),
					"EditForm",
					"field",
					$this->GridFieldName,
					"item",
					$record->ID,
					"edit",
					"?ID={$this->SubjectPageID}"
				);
				$ret->push($record);
			}
			return $ret;
		}
	}
public function GridFieldItems() {
		if($grid = $this->getGrid()) {
			$list = $grid->getList()
				->limit($this->Count)
				->sort("LastEdited DESC");
			$ret = ArrayList::create(array());
			foreach($list as $record) {
				$record->EditLink = Controller::join_links(
					Injector::inst()->get("CMSMain")->Link("edit"),
					"EditForm",
					"field",
					$this->GridFieldName,
					"item",
					$record->ID,
					"edit",
					"?ID={$this->SubjectPageID}"
				);
				$ret->push($record);
			}
			return $ret;
		}
	}
public function GridFieldItems ( ) { if ( $ grid = $ this -> getGrid ( ) ) { $ list = $ grid -> getList ( ) -> limit ( $ this -> Count ) -> sort ( "LastEdited DESC" ) ; $ ret = ArrayList :: create ( array ( ) ) ; foreach ( $ list as $ record ) { $ record -> EditLink = Controller :: join_links ( Injector :: inst ( ) -> get ( "CMSMain" ) -> Link ( "edit" ) , "EditForm" , "field" , $ this -> GridFieldName , "item" , $ record -> ID , "edit" , "?ID={$this->SubjectPageID}" ) ; $ ret -> push ( $ record ) ; } return $ ret ; } }
Gets the records in this GridField summary. Provides edit links and a title label

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