SettingsDialog
class SettingsDialog
Properties
$ready_override | |||
$instructor_override |
Methods
Construct us with with a container that has a settings trait and launch
Check if we are ready to go
Check if the current user is an instructor
Check for incoming settings post data
Handle incoming settings post data
Emit a properly styled "settings" button
Emit a properly styled "settings" button
Emit a properly styled "settings" link
Return the attributes to add to a tag to connect to activate the settings modal
No description
Finish the form output
Handle a settings selector box
Handle a settings text box
Handle a settings color box
Handle a settings number box
Handle a settings textarea box
Handle a settings checkbox
Get the due data data in an object
Show a due date delta in reasonable units
Emit the text and form fields to support due dates
Emit the text and form fields to support the done option
Details
at line 27
__construct($container = false)
Construct us with with a container that has a settings trait and launch
$settingsDialog = new SettingsDialog($LAUNCH->link);
at line 41
ready()
Check if we are ready to go
at line 52
instructor()
Check if the current user is an instructor
at line 73
boolean
isSettingsPost()
Check for incoming settings post data
at line 90
boolean
handleSettingsPost()
Handle incoming settings post data
at line 115
buttonText($right = false)
Emit a properly styled "settings" button
This is just the button, using the pencil icon. Wrap in a span or div tag if you want to move it around
at line 132
button($right = false)
Emit a properly styled "settings" button
This is just the button, using the pencil icon. Wrap in a span or div tag if you want to move it around
at line 143
link($right = false)
Emit a properly styled "settings" link
This is just the link, using the pencil icon and label.
at line 159
attr()
Return the attributes to add to a tag to connect to activate the settings modal
at line 165
start()
at line 193
end()
Finish the form output
at line 211
select($name, $default = false, $fields = false)
Handle a settings selector box
at line 256
text($name, $title = false)
Handle a settings text box
at line 284
color($name, $title = false)
Handle a settings color box
at line 312
number($name, $title = false)
Handle a settings number box
at line 340
textarea($name, $title = false)
Handle a settings textarea box
at line 368
checkbox($name, $title = false)
Handle a settings checkbox
at line 418
getDueDate()
Get the due data data in an object
at line 479
getDueDateDelta($time)
Show a due date delta in reasonable units
at line 496
dueDate()
Emit the text and form fields to support due dates
at line 552
done()
Emit the text and form fields to support the done option