Core/Html/Controls/DateTimePicker.php
public function useCurrent($bool = null)
    {
        if (isset($bool)) {

            $this->option_use_current = is_bool($bool) ? $bool : false;
            $this->set_options['use_current'] = 'useCurrent';

            return $this;
        }
        else {

            return $this->option_show_today;
        }
    }
public function useCurrent($bool = null)
    {
        if (isset($bool)) {

            $this->option_use_current = is_bool($bool) ? $bool : false;
            $this->set_options['use_current'] = 'useCurrent';

            return $this;
        }
        else {

            return $this->option_show_today;
        }
    }
public function useCurrent ( $ bool = null ) { if ( isset ( $ bool ) ) { $ this -> option_use_current = is_bool ( $ bool ) ? $ bool : false ; $ this -> set_options [ 'use_current' ] = 'useCurrent' ; return $ this ; } else { return $ this -> option_show_today ; } }
Set flag to use or not use the current button.
This option is "true" by default.
Calling this method without parameter returns the currently set value.

@param boolean $bool

@return boolean, @return \Core\Html\Controls\DateTimePicker
Set flag to use or not use the current button . This option is true by default . Calling this method without parameter returns the currently set value .