More work on displaying and editing an LDAP entry
This commit is contained in:
@@ -5,8 +5,8 @@ namespace App\Classes\LDAP\Attribute\Internal;
|
||||
use App\Classes\LDAP\Attribute\Internal;
|
||||
|
||||
/**
|
||||
* Represents an EntryDN Attribute
|
||||
* Represents an CSN Attribute
|
||||
*/
|
||||
final class EntryDN extends Internal
|
||||
final class CSN extends Internal
|
||||
{
|
||||
}
|
@@ -5,8 +5,8 @@ namespace App\Classes\LDAP\Attribute\Internal;
|
||||
use App\Classes\LDAP\Attribute\Internal;
|
||||
|
||||
/**
|
||||
* Represents an EntryCSN Attribute
|
||||
* Represents an DN Attribute
|
||||
*/
|
||||
final class EntryCSN extends Internal
|
||||
final class DN extends Internal
|
||||
{
|
||||
}
|
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Classes\LDAP\Attribute\Internal;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Contracts\View\View;
|
||||
|
||||
use App\Classes\LDAP\Attribute\Internal;
|
||||
|
||||
@@ -11,8 +11,10 @@ use App\Classes\LDAP\Attribute\Internal;
|
||||
*/
|
||||
final class Timestamp extends Internal
|
||||
{
|
||||
public function __toString(): string
|
||||
public function render(bool $edit=FALSE): View
|
||||
{
|
||||
return Carbon::createFromTimestamp(strtotime($this->values[0]))->format(config('ldap.datetime_format','Y-m-d H:i:s'));
|
||||
// @note Internal attributes cannot be edited
|
||||
return view('components.attribute.internal.timestamp')
|
||||
->with('o',$this);
|
||||
}
|
||||
}
|
@@ -5,8 +5,8 @@ namespace App\Classes\LDAP\Attribute\Internal;
|
||||
use App\Classes\LDAP\Attribute\Internal;
|
||||
|
||||
/**
|
||||
* Represents an EntryUUID Attribute
|
||||
* Represents an UUID Attribute
|
||||
*/
|
||||
final class EntryUUID extends Internal
|
||||
final class UUID extends Internal
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user