class PHPExcel_HashTable

PHPExcel_HashTable

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Methods

__construct(PHPExcel_IComparable[] $pSource = null)

Create a new PHPExcel_HashTable

addFromSource(PHPExcel_IComparable[] $pSource = null)

Add HashTable items from source

add(PHPExcel_IComparable $pSource = null)

Add HashTable item

remove(PHPExcel_IComparable $pSource = null)

Remove HashTable item

clear()

Clear HashTable

int
count()

Count

int
getIndexForHashCode(string $pHashCode = '')

Get index for hash code

getByIndex(int $pIndex)

Get by index

getByHashCode(string $pHashCode = '')

Get by hashcode

toArray()

HashTable to array

__clone()

Implement PHP __clone to create a deep clone, not just a shallow copy.

Details

at line 59
__construct(PHPExcel_IComparable[] $pSource = null)

Create a new PHPExcel_HashTable

Parameters

PHPExcel_IComparable[] $pSource Optional source array to create HashTable from

Exceptions

PHPExcel_Exception

at line 73
addFromSource(PHPExcel_IComparable[] $pSource = null)

Add HashTable items from source

Parameters

PHPExcel_IComparable[] $pSource Source array to create HashTable from

Exceptions

PHPExcel_Exception

at line 93
add(PHPExcel_IComparable $pSource = null)

Add HashTable item

Parameters

PHPExcel_IComparable $pSource Item to add

Exceptions

PHPExcel_Exception

at line 108
remove(PHPExcel_IComparable $pSource = null)

Remove HashTable item

Parameters

PHPExcel_IComparable $pSource Item to remove

Exceptions

PHPExcel_Exception

at line 132
clear()

Clear HashTable

at line 143
int count()

Count

Return Value

int

at line 154
int getIndexForHashCode(string $pHashCode = '')

Get index for hash code

Parameters

string $pHashCode

Return Value

int Index

at line 166
PHPExcel_IComparable getByIndex(int $pIndex)

Get by index

Parameters

int $pIndex

Return Value

PHPExcel_IComparable

at line 182
PHPExcel_IComparable getByHashCode(string $pHashCode = '')

Get by hashcode

Parameters

string $pHashCode

Return Value

PHPExcel_IComparable

at line 196
PHPExcel_IComparable[] toArray()

HashTable to array

Return Value

PHPExcel_IComparable[]

at line 204
__clone()

Implement PHP __clone to create a deep clone, not just a shallow copy.