PHP Classes

File: src/Discretion/Struct/Theme.php

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  Discretion  >  src/Discretion/Struct/Theme.php  >  Download  
File: src/Discretion/Struct/Theme.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Discretion
Show contact forms and deliver encrypted mail
Author: By
Last change:
Date: 4 months ago
Size: 816 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);
namespace
ParagonIE\Discretion\Struct;

use
ParagonIE\Discretion\Struct;

/**
 * Class Theme
 * @package ParagonIE\Discretion\Struct
 */
class Theme extends Struct
{
    const
TABLE_NAME = 'discretion_themes';
    const
PRIMARY_KEY = 'themeid';
    const
DB_FIELD_NAMES = [
       
'themeid' => 'id',
       
'name' => 'name',
       
'public' => 'public',
       
'config' => 'config',
       
'userid' => 'userId'
   
];

   
/** @var string $config */
   
protected $config = '';

   
/** @var string $name */
   
protected $name = '';

   
/** @var bool $public */
   
protected $public = false;

   
/** @var int $userId */
   
protected $userId = 0;

   
/**
     * @return User
     */
   
public function getUser(): User
   
{
        return
User::byId($this->userId);
    }
}

For more information send a message to info at phpclasses dot org.