Hawk - PHP documentation
  • Namespace
  • Class
  • Tree

Namespaces

  • Hawk
    • View
      • Plugins

Classes

  • App
  • ButtonInput
  • Cache
  • CheckboxInput
  • ColorInput
  • Conf
  • Controller
  • Crypto
  • DatabaseSessionHandler
  • DatetimeInput
  • DB
  • DBExample
  • DeleteInput
  • Dialogbox
  • EmailInput
  • ErrorHandler
  • Event
  • FileInput
  • FileSystem
  • FloatInput
  • Form
  • FormFieldset
  • FormInput
  • GenericModel
  • GifImage
  • HawkApi
  • HawkUpdater
  • HiddenInput
  • HtmlInput
  • HTTPRequest
  • Icon
  • Image
  • IntegerInput
  • ItemList
  • ItemListField
  • JpegImage
  • Lang
  • Language
  • LeftSidebarTab
  • Less
  • Logger
  • Mail
  • MenuItem
  • Model
  • NoSidebarTab
  • NumberInput
  • ObjectInput
  • Option
  • Panel
  • PasswordInput
  • Permission
  • Plugin
  • PluginInstaller
  • PngImage
  • ProfileQuestion
  • ProfileQuestionValue
  • RadioInput
  • Request
  • Response
  • RightSidebarTab
  • Role
  • RolePermission
  • Route
  • Router
  • SelectInput
  • Session
  • Singleton
  • SubmitInput
  • Tabs
  • TextareaInput
  • TextInput
  • Theme
  • TimeInput
  • Upload
  • User
  • View
  • ViewPlugin
  • Widget
  • WysiwygInput

Traits

  • Utils

Exceptions

  • AppStopException
  • DBExampleException
  • DBException
  • FileSystemException
  • HawkApiException
  • ImageException
  • MailException
  • UploadException
  • ViewException

Class Option

This class is used to access and set application options

Namespace: Hawk
Package: Core
Located at Option.php

Methods summary

public static string
# get( string $name )

Get the value of an option

Get the value of an option

Parameters

$name
the option to get the value of, formatted like : .

Returns

string
the value og the option
public static array
# getPluginOptions( string $plugin )

Load all the options of a given plugin

Load all the options of a given plugin

Parameters

$plugin
The plugin to find the options of

Returns

array
All the options of the plugin with their values
public static
# set( string $name, mixed $value )

Add an option or update an existing option value

Add an option or update an existing option value

Parameters

$name
The name of the option, formatted like : .
$value
The value to set for this option
public static
# delete( string $name )

Remove an option

Remove an option

Parameters

$name
The name of the option, formatted like : .
public static array
# getAll( )

Get All options

Get All options

Returns

array
The array containing all options
Hawk - PHP documentation API documentation generated by ApiGen