Overview

Namespaces

  • GAubry
    • ErrorHandler
    • Helpers
    • Logger
    • Shell
  • Himedia
    • Padocc
      • DB
      • Minifier
      • Numbering
      • Properties
      • Task
        • Base
        • Extended
  • None
  • Psr
    • Log

Classes

  • DeploymentMapper
  • PDOAdapter

Interfaces

  • DBAdapterInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class DeploymentMapper

Deployment entity

Namespace: Himedia\Padocc\DB
Located at Himedia/Padocc/DB/DeploymentMapper.php
Methods summary
public
# __construct( Himedia\Padocc\DB\DBAdapterInterface $oDB )

Constructor.

Constructor.

Parameters

$oDB
Himedia\Padocc\DB\DBAdapterInterface
$oDB
public
# insert( array $aParameters )

Build and execute an INSERT on $this->sTable filling specified columns.

Build and execute an INSERT on $this->sTable filling specified columns.

Parameters

$aParameters
array
$aParameters key-value list of columns and values to insert
public array
# select( array $aFilter, array $aOrderBy = array(), integer $iLimit = 100, integer $iOffset = 0 )

Build and execute a SELECT, and return all rows.

Build and execute a SELECT, and return all rows.

Parameters

$aFilter
array
$aFilter in conjunctive normal form (CNF), i.e. a conjunction of clauses where clauses are disjunction of literals: <filter> := array(<clause>, …) <clause> := array(<literal>, …) <literal> := array('column' => 'value')
$aOrderBy
array
$aOrderBy list of 'column ASC|DESC'
$iLimit
integer
$iLimit
$iOffset
integer
$iOffset

Returns

array
all rows with \PDO::FETCH_ASSOC mode
public
# update( array $aParameters )

Build and execute an UPDATE on $this->sTable.

Build and execute an UPDATE on $this->sTable.

Parameters

$aParameters
array
$aParameters key-value list of columns and values to update, including primary key value.

Throws

RuntimeException
if no value for primary key is found in $aParameters.
Properties summary
private Himedia\Padocc\DB\DBAdapterInterface $oDB
#
private string $sTable
#

Name of SQL table.

Name of SQL table.

private string $sPK
#

Primary key column.

Primary key column.

Platform for Automatized Deployments with pOwerful Concise Configuration API documentation generated by ApiGen 2.8.0