Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F32064647
ApplicationConfiguration.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
ApplicationConfiguration.php
View Options
<?php
/**
* _, __, _, _ __, _ _, _, _
* / \ |_) (_ | | \ | /_\ |\ |
* \ / |_) , ) | |_/ | | | | \|
* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*
* Application configuration class
*
* @package ObsidianWorkspaces
* @subpackage Apps
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*/
/**
* Application configuration class
*
* This class describes an application configuration.
*
* It can be serialized into a workspace.conf application entry
*/
class
ApplicationConfiguration
{
/**
* @var string The URL the application is binded to, without initial slash.
*/
public
$bind
;
/**
* @var Message The navigation entry
*/
public
$nav
;
/**
* @var string The application icon name
*/
public
$icon
;
/**
* Loads a WorkspaceConfiguration instance from an object
*
* @param object $data The object to deserialize
* @return WorkspaceConfiguration The deserialized instance
*/
public
static
function
loadFromObject
(
$data
)
{
$instance
=
new
ApplicationConfiguration
();
//Applications array
foreach
(
$data
as
$key
=>
$value
)
{
if
(
$key
==
"nav"
)
{
$instance
->
nav
=
new
Message
(
$value
);
}
else
{
$instance
->
$key
=
$value
;
}
}
return
$instance
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 8, 09:06 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3763318
Default Alt Text
ApplicationConfiguration.php (1 KB)
Attached To
Mode
rOBSIDIAN Obsidian Workspaces
Attached
Detach File
Event Timeline
Log In to Comment