2023-03-02 09:54:30 +11:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Classes\LDAP\Attribute;
|
|
|
|
|
2023-04-02 22:07:15 +10:00
|
|
|
use Illuminate\Contracts\View\View;
|
|
|
|
|
2023-03-02 09:54:30 +11:00
|
|
|
use App\Classes\LDAP\Attribute;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Represents an attribute whose values are internal
|
|
|
|
*/
|
|
|
|
abstract class Internal extends Attribute
|
|
|
|
{
|
2023-03-02 14:41:38 +11:00
|
|
|
protected bool $is_internal = TRUE;
|
2023-04-02 22:07:15 +10:00
|
|
|
|
2024-01-20 10:36:30 +11:00
|
|
|
public function render(bool $edit=FALSE,bool $old=FALSE,bool $new=FALSE): View
|
2023-04-02 22:07:15 +10:00
|
|
|
{
|
|
|
|
// @note Internal attributes cannot be edited
|
|
|
|
return view('components.attribute.internal')
|
|
|
|
->with('o',$this);
|
|
|
|
}
|
2023-03-02 09:54:30 +11:00
|
|
|
}
|