Property | Type | Description | |
---|---|---|---|
$items | array | HashTable elements | |
$keyMap | array | HashTable key map |
Method | 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 |
public __construct ( array $pSource = null ) | ||
$pSource | array | Optional source array to create HashTable from |
public add ( ComparableInterface $pSource ) | ||
$pSource | ComparableInterface | Item to add |
public addFromSource ( PhpOffice\PhpPresentation\ComparableInterface[] $pSource = null ) | ||
$pSource | PhpOffice\PhpPresentation\ComparableInterface[] | Source array to create HashTable from |
public getByHashCode ( string $pHashCode = '' ) : PhpOffice\PhpPresentation\ComparableInterface | ||
$pHashCode | string | |
return | PhpOffice\PhpPresentation\ComparableInterface |
public getByIndex ( integer $pIndex ) : PhpOffice\PhpPresentation\ComparableInterface | ||
$pIndex | integer | |
return | PhpOffice\PhpPresentation\ComparableInterface |
public getIndexForHashCode ( string $pHashCode = '' ) : integer | ||
$pHashCode | string | |
return | integer | Index |
public remove ( ComparableInterface $pSource ) | ||
$pSource | ComparableInterface | Item to remove |
public toArray ( ) : PhpOffice\PhpPresentation\ComparableInterface[] | ||
return | PhpOffice\PhpPresentation\ComparableInterface[] |