PHP Class PhpOffice\PhpPresentation\HashTable

Afficher le fichier Open project: phpoffice/phppowerpoint Class Usage Examples

Méthodes publiques

Свойство Type Description
$items array HashTable elements
$keyMap array HashTable key map

Méthodes publiques

Méthode Description
__construct ( array $pSource = null ) Create a new \PhpOffice\PhpPresentation\HashTable
add ( ComparableInterface $pSource ) Add HashTable item
addFromSource ( PhpOffice\PhpPresentation\ComparableInterface[] $pSource = null ) Add HashTable items from source
clear ( ) Clear HashTable
count ( ) : integer Count
getByHashCode ( string $pHashCode = '' ) : PhpOffice\PhpPresentation\ComparableInterface Get by hashcode
getByIndex ( integer $pIndex ) : PhpOffice\PhpPresentation\ComparableInterface Get by index
getIndexForHashCode ( string $pHashCode = '' ) : integer Get index for hash code
remove ( ComparableInterface $pSource ) Remove HashTable item
toArray ( ) : PhpOffice\PhpPresentation\ComparableInterface[] HashTable to array

Method Details

__construct() public méthode

Create a new \PhpOffice\PhpPresentation\HashTable
public __construct ( array $pSource = null )
$pSource array Optional source array to create HashTable from

add() public méthode

Add HashTable item
public add ( ComparableInterface $pSource )
$pSource ComparableInterface Item to add

addFromSource() public méthode

Add HashTable items from source
public addFromSource ( PhpOffice\PhpPresentation\ComparableInterface[] $pSource = null )
$pSource PhpOffice\PhpPresentation\ComparableInterface[] Source array to create HashTable from

clear() public méthode

Clear HashTable
public clear ( )

count() public méthode

Count
public count ( ) : integer
Résultat integer

getByHashCode() public méthode

Get by hashcode
public getByHashCode ( string $pHashCode = '' ) : PhpOffice\PhpPresentation\ComparableInterface
$pHashCode string
Résultat PhpOffice\PhpPresentation\ComparableInterface

getByIndex() public méthode

Get by index
public getByIndex ( integer $pIndex ) : PhpOffice\PhpPresentation\ComparableInterface
$pIndex integer
Résultat PhpOffice\PhpPresentation\ComparableInterface

getIndexForHashCode() public méthode

Get index for hash code
public getIndexForHashCode ( string $pHashCode = '' ) : integer
$pHashCode string
Résultat integer Index

remove() public méthode

Remove HashTable item
public remove ( ComparableInterface $pSource )
$pSource ComparableInterface Item to remove

toArray() public méthode

HashTable to array
public toArray ( ) : PhpOffice\PhpPresentation\ComparableInterface[]
Résultat PhpOffice\PhpPresentation\ComparableInterface[]

Property Details

$items public_oe property

HashTable elements
public array $items
Résultat array

$keyMap public_oe property

HashTable key map
public array $keyMap
Résultat array