https://github.com/lutsen/property-objectlink
Controller for the Lagan Objectlink property.
https://github.com/lutsen/property-objectlink
lagan php
Last synced: 5 months ago
JSON representation
Controller for the Lagan Objectlink property.
- Host: GitHub
- URL: https://github.com/lutsen/property-objectlink
- Owner: lutsen
- License: mit
- Created: 2017-02-08T08:33:09.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T20:57:58.000Z (almost 8 years ago)
- Last Synced: 2024-12-18T11:23:59.124Z (about 1 year ago)
- Topics: lagan, php
- Language: PHP
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[
](https://github.com/lutsen/lagan)
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.
Example:
```php
[
'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](https://github.com/lutsen/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](http://lutsen.net/).