Controller for the Lagan objectlink property. Links to any object in the database and returns the object.

v1.0.1 2017-02-13 13:48 UTC

This package is auto-updated.

Last update: 2024-05-29 02:53:46 UTC



Lagan Objectlink Property Controller

Controller for the Lagan Objectlink property.
Can link an object to any object of any type in the database. The object is specified by it's type and id. If id == false, all objects of this type are linked. In the Lagan model an array needs to be defined with the object types that can be linked to. In this array the type of object models that can be used are the keys, and the type of link are the values. Linktype can be "single" to only link to singel objects, "group" to only link to the entire group of objects, and "all" to link to both.


	'name' => 'object',
	'description' => 'Content object',
	'type' => '\Lagan\Property\Objectlink',
	'input' => 'objectlink',
	'models' => [
		'Content' => 'single',
		'Genre' => 'group',
		'Employee' => 'group',
		'Publication' => 'all'

To be used with Lagan. Lagan lets you create flexible content objects with a simple class, and manage them with a web interface.

Lagan is a project of Lútsen Stellingwerff.