Resource Description for Widget

Properties for Widget

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
object mixed
positionColumn int
positionRow int
settings string
widgetType WidgetType
zoneIdentifier string

SDK Example for PHP

<?PHP

use Arbor\Api\Gateway\RestGateway;
use Arbor\Model\ModelBase;
use Arbor\Model\Widget;

ModelBase::setDefaultGateway(
    new RestGateway(
        "https://my-school.arbor.sc/rest-v2",
        "my.username@my-school.arbor.sc",
        "3bh54435v3gh45"
    )
);

$widget = Widget::retrieve(5433);

$zoneIdentifier = $widget->getZoneIdentifier();
$object = $widget->getObject();
$widgetType = $widget->getWidgetType();
$settings = $widget->getSettings();
$positionColumn = $widget->getPositionColumn();
$positionRow = $widget->getPositionRow();

 

Related Resources

See also: WidgetType