2023-03-01 22:54:30 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Classes\LDAP\Attribute;
|
|
|
|
|
2023-04-02 12:07:15 +00:00
|
|
|
use Illuminate\Contracts\View\View;
|
|
|
|
|
2023-03-01 22:54:30 +00:00
|
|
|
use App\Classes\LDAP\Attribute;
|
|
|
|
|
|
|
|
/**
|
2023-03-02 07:21:53 +00:00
|
|
|
* Represents an ObjectClass Attribute
|
2023-03-01 22:54:30 +00:00
|
|
|
*/
|
|
|
|
final class ObjectClass extends Attribute
|
|
|
|
{
|
2023-04-02 12:07:15 +00:00
|
|
|
public function __get(string $key): mixed
|
|
|
|
{
|
|
|
|
switch ($key) {
|
|
|
|
case 'is_structural': return FALSE; // @todo - need to determine which of the values is the structural objectclass value(s)
|
|
|
|
default:
|
|
|
|
return parent::__get($key);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public function render(bool $edit=FALSE): View
|
2023-03-01 22:54:30 +00:00
|
|
|
{
|
2023-04-02 12:07:15 +00:00
|
|
|
return view('components.attribute.objectclass')
|
|
|
|
->with('edit',$edit)
|
|
|
|
->with('o',$this);
|
2023-03-01 22:54:30 +00:00
|
|
|
}
|
|
|
|
}
|