EC-CUBE
Public メソッド | 変数
クラス Calendar_Week
Calendar_Weekに対する継承グラフ
Inheritance graph
[凡例]
Calendar_Weekのコラボレーション図
Collaboration graph
[凡例]

Public メソッド

 Calendar_Week ($y, $m, $d, $firstDay=null)
 setTimestamp ($ts)
 build ($sDates=array())
 setFirst ($state=true)
 setLast ($state=true)
 setSelection ($sDates)
 prevWeek ($format= 'n_in_month')
 thisWeek ($format= 'n_in_month')
 nextWeek ($format= 'n_in_month')
getHelper ()
 findFirstDay ()

変数

 $tableHelper
 $thisWeek
 $prevWeek
 $nextWeek
 $firstWeek = false
 $lastWeek = false
 $firstDay = 1

関数

build ( sDates = array())

Builds Calendar_Day objects for this Week

引数:
array(optional) Calendar_Day objects representing selected dates
戻り値:
boolean public

Calendarを再定義しています。

Calendar_Week ( y,
m,
d,
firstDay = null 
)

Constructs Week

引数:
intyear e.g. 2003
intmonth e.g. 5
inta day of the desired week
int(optional) first day of week (e.g. 0 for Sunday, 2 for Tuesday etc.) public

Makes sure theres a value for $this->day

戻り値:
void private
& getHelper ( )

Returns the instance of Calendar_Table_Helper. Called from Calendar_Validator::isValidWeek

戻り値:
Calendar_Table_Helper protected
nextWeek ( format = 'n_in_month')

Gets the value of the following week, according to the requested format

引数:
string$format['timestamp' | 'n_in_month' | 'n_in_year' | 'array']
戻り値:
mixed public
prevWeek ( format = 'n_in_month')

Gets the value of the previous week, according to the requested format

引数:
string$format['timestamp' | 'n_in_month' | 'n_in_year' | 'array']
戻り値:
mixed public
setFirst ( state = true)
引数:
boolean
戻り値:
void private
setLast ( state = true)
引数:
boolean
戻り値:
void private
setSelection ( sDates)

Called from build()

引数:
array
戻り値:
void private

Calendarを再定義しています。

setTimestamp ( ts)

Defines the calendar by a timestamp (Unix or ISO-8601), replacing values passed to the constructor

引数:
int|stringUnix or ISO-8601 timestamp
戻り値:
void public

Calendarを再定義しています。

thisWeek ( format = 'n_in_month')

Gets the value of the current week, according to the requested format

引数:
string$format['timestamp' | 'n_in_month' | 'n_in_year' | 'array']
戻り値:
mixed public

このクラスの説明は次のファイルから生成されました:
 全て データ構造 ネームスペース 関数 変数