code/dataobjects/Block.php
/*
	 * Get a list of Page and Blockset titles this block is used on
	 */
Get a list of Page and Blockset titles this block is used on
Get a list of Page and Blockset titles this block is used on
public function UsageListAsString() {
		$pages = implode(", ", $this->Pages()->column('URLSegment'));
		$sets = implode(", ", $this->BlockSets()->column('Title'));
		if($pages && $sets) return "Pages: $pages<br />Block Sets: $sets";
		if($pages) return "Pages: $pages";
		if($sets) return "Block Sets: $sets";
	}
public function UsageListAsString ( ) { $ pages = implode ( " ,  " , $ this -> Pages ( ) -> column ( 'URLSegment' ) ) ; $ sets = implode ( " ,  " , $ this -> BlockSets ( ) -> column ( 'Title' ) ) ; if ( $ pages && $ sets ) return " Pages:  $ pages <br />Block Sets:  $ sets " ; if ( $ pages ) return " Pages:  $ pages " ; if ( $ sets ) return " Block Sets:  $ sets " ; }
Get a list of Page and Blockset titles this block is used on
Get a list of Page and Blockset titles this block is used on