public getControlSource ( string $field = null ) : array | ||
$field | string | フィールド名 |
Результат | array | コントロールソース |
public function getControlSource($field = null)
{
$controlSources['cache_time'] = array('+1 minute' => '1分', '+30 minutes' => '30分', '+1 hour' => '1時間', '+6 hours' => '6時間', '+24 hours' => '1日');
return $controlSources[$field];
}