code/dataobjects/Block.php
/**
	 * Check if this block has been published.
	 * @return boolean True if this page has been published.
	 */
Check if this block has been published.
@return boolean True if this page has been published.
Check if this block has been published . @return boolean True if this page has been published .
public function isPublished() {
		if(!$this->exists())
			return false;
		return (DB::query("SELECT \"ID\" FROM \"Block_Live\" WHERE \"ID\" = $this->ID")->value())
			? 1
			: 0;
	}
public function isPublished ( ) { if ( ! $ this -> exists ( ) ) return false ; return ( DB :: query ( " SELECT  \" ID \"  FROM  \" Block_Live \"  WHERE  \" ID \"  =  $ this -> ID " ) -> value ( ) ) ? 1 : 0 ; }
Check if this block has been published.
Check if this block has been published .