code/dataobjects/Block.php
/**
	 * Renders this block with appropriate templates
	 * looks for templates that match BlockClassName_AreaName
	 * falls back to BlockClassName
	 * @return string
	 **/
Renders this block with appropriate templates
looks for templates that match BlockClassName_AreaName
falls back to BlockClassName
@return string
Renders this block with appropriate templates looks for templates that match BlockClassName_AreaName falls back to BlockClassName @return string
public function forTemplate(){
		if($this->BlockArea){
			$template[] = $this->class . '_' . $this->BlockArea;
			if(SSViewer::hasTemplate($template)){
				return $this->renderWith($template);
			}
		}
		return $this->renderWith($this->ClassName);
	}
public function forTemplate ( ) { if ( $ this -> BlockArea ) { $ template [ ] = $ this -> class . '_' . $ this -> BlockArea ; if ( SSViewer :: hasTemplate ( $ template ) ) { return $ this -> renderWith ( $ template ) ; } } return $ this -> renderWith ( $ this -> ClassName ) ; }
Renders this block with appropriate templates
 looks for templates that match BlockClassName_AreaName
 falls back to BlockClassName
 @return string
Renders this block with appropriate templates looks for templates that match BlockClassName_AreaName falls back to BlockClassName @return string