PHP Class PhpOffice\PhpPresentation\HashTable

Datei anzeigen Open project: phpoffice/phppowerpoint Class Usage Examples

Public Properties

Property Type Description
$items array HashTable elements
$keyMap array HashTable key map

Public Methods

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

Method Details

__construct() public method

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

add() public method

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

addFromSource() public method

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

clear() public method

Clear HashTable
public clear ( )

count() public method

Count
public count ( ) : integer
return integer

getByHashCode() public method

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

getByIndex() public method

Get by index
public getByIndex ( integer $pIndex ) : PhpOffice\PhpPresentation\ComparableInterface
$pIndex integer
return PhpOffice\PhpPresentation\ComparableInterface

getIndexForHashCode() public method

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

remove() public method

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

toArray() public method

HashTable to array
public toArray ( ) : PhpOffice\PhpPresentation\ComparableInterface[]
return PhpOffice\PhpPresentation\ComparableInterface[]

Property Details

$items public_oe property

HashTable elements
public array $items
return array

$keyMap public_oe property

HashTable key map
public array $keyMap
return array