src/UI/HTML/MonthCalendar.php
protected function buildCell( $day, $class = "")
	{
		$classes	= array( 'day' );
		if(	$this->getOption( 'current_year' ) == $this->getOption( 'show_year' ) &&
			$this->getOption( 'current_month' ) == $this->getOption( 'show_month' ) &&
			$this->getOption( 'current_day' ) == $day )
			$classes[]	= 'current';
		if( $class )
			$classes[]	= $class;
		if( $day )
		{
			$content	= $this->modifyDay( $day );
			$day		= $content['day'];
			if( isset( $content['class'] ) && $content['class'] )
				$classes[]	= $content['class'];
		}
		else
			$day	= "&nbsp;";
		$code	= UI_HTML_Tag::create( "div", $day, array( 'class' => implode( " ", $classes ) ) );
		return $code;
	}
protected function buildCell( $day, $class = "")
	{
		$classes	= array( 'day' );
		if(	$this->getOption( 'current_year' ) == $this->getOption( 'show_year' ) &&
			$this->getOption( 'current_month' ) == $this->getOption( 'show_month' ) &&
			$this->getOption( 'current_day' ) == $day )
			$classes[]	= 'current';
		if( $class )
			$classes[]	= $class;
		if( $day )
		{
			$content	= $this->modifyDay( $day );
			$day		= $content['day'];
			if( isset( $content['class'] ) && $content['class'] )
				$classes[]	= $content['class'];
		}
		else
			$day	= "&nbsp;";
		$code	= UI_HTML_Tag::create( "div", $day, array( 'class' => implode( " ", $classes ) ) );
		return $code;
	}
protected function buildCell ( $ day , $ class = "" ) { $ classes = array ( 'day' ) ; if ( $ this -> getOption ( 'current_year' ) == $ this -> getOption ( 'show_year' ) && $ this -> getOption ( 'current_month' ) == $ this -> getOption ( 'show_month' ) && $ this -> getOption ( 'current_day' ) == $ day ) $ classes [ ] = 'current' ; if ( $ class ) $ classes [ ] = $ class ; if ( $ day ) { $ content = $ this -> modifyDay ( $ day ) ; $ day = $ content [ 'day' ] ; if ( isset ( $ content [ 'class' ] ) && $ content [ 'class' ] ) $ classes [ ] = $ content [ 'class' ] ; } else $ day = "&nbsp;" ; $ code = UI_HTML_Tag :: create ( "div" , $ day , array ( 'class' => implode ( " " , $ classes ) ) ) ; return $ code ; }
Builds Table Cell for one Day.
@access		protected
@param		int			$day		Number of Day
@param		string		$class		Class of Cell
@return		string
Builds Table Cell for one Day .