framework/i18n/CDateFormatter.php
protected function formatWeekInYear($pattern,$date)
	{
		if($pattern==='w')
			return @date('W',@mktime(0,0,0,$date['mon'],$date['mday'],$date['year']));
		else
			throw new CException(Yii::t('yii','The pattern for week in year must be "w".'));
	}
protected function formatWeekInYear($pattern,$date)
	{
		if($pattern==='w')
			return @date('W',@mktime(0,0,0,$date['mon'],$date['mday'],$date['year']));
		else
			throw new CException(Yii::t('yii','The pattern for week in year must be "w".'));
	}
protected function formatWeekInYear ( $ pattern , $ date ) { if ( $ pattern === 'w' ) return @ date ( 'W' , @ mktime ( 0 , 0 , 0 , $ date [ 'mon' ] , $ date [ 'mday' ] , $ date [ 'year' ] ) ) ; else throw new CException ( Yii :: t ( 'yii' , 'The pattern for week in year must be "w".' ) ) ; }
Get the week in the year.
@param string $pattern a pattern.
@param array $date result of {@link CTimestamp::getdate}.
@throws CException if "weekInYear" pattern is unknown
@return integer week in year
Get the week in the year .