PhpMyObject
[ class tree: PhpMyObject ] [ index: PhpMyObject ] [ all elements ]

Class: PMO_MyArray

Source Location: /fichiers/v0.15/PMO_core/PMO_MyArray.php

Class Overview


PMO_MyArray adds iterators to PMO stores.


Implements interfaces:

  • Countable (internal interface)
  • Iterator (internal interface)

Variables

Methods



Class Details

[line 43]
PMO_MyArray adds iterators to PMO stores.



[ Top ]


Class Variables

$array = array()

[line 49]

holds the PMO objects



Tags:

access:  protected

Type:   array


[ Top ]



Class Methods


method add [line 55]

void add( $key, $value)



Tags:

access:  public


Parameters:

   $key  
   $value  

[ Top ]

method append [line 51]

void append( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method arsort [line 74]

void arsort( [ $sort_flags = NULL])



Tags:

access:  public


Parameters:

int   $sort_flags  

[ Top ]

method asort [line 78]

void asort( [ $sort_flags = NULL])



Tags:

access:  public


Parameters:

int   $sort_flags  

[ Top ]

method change_key_case [line 82]

void change_key_case( )



Tags:

access:  public


[ Top ]

method count [line 93]

void count( [ $mode = NULL])



Tags:

access:  public



Implementation of:
Countable::count

Parameters:

int   $mode  

[ Top ]

method count_values [line 89]

void count_values( )

already taken care by ArrayIterator as count();



Tags:

access:  public


[ Top ]

method current [line 97]

void current( )



Tags:

access:  public



Implementation of:
Iterator::current
[ Top ]

method each [line 101]

void each( )



Tags:

access:  public


[ Top ]

method end [line 111]

void end( )



Tags:

access:  public


[ Top ]

method fetch [line 151]

void fetch( )



Tags:

access:  public


[ Top ]

method flip [line 161]

void flip( )



Tags:

access:  public


[ Top ]

method get [line 115]

void get( $key)



Tags:

access:  public


Parameters:

   $key  

[ Top ]

method implode [line 123]

void implode( $char)



Tags:

access:  public


Parameters:

   $char  

[ Top ]

method in_array [line 119]

void in_array( $needle, $haystack, [ $strict = NULL])



Tags:

access:  public


Parameters:

mixed   $needle  
array   $haystack  
bool   $strict  

[ Top ]

method key [line 127]

void key( )



Tags:

access:  public



Implementation of:
Iterator::key
[ Top ]

method key_exists [line 139]

bool key_exists( $key)

return true if the key exists, false otherwise

Note l'array est indexé numériquement. Donc la clé est un entier, à moins d'utiliser un map hash comme dans MyMapHash?




Tags:

return:  true if the key exists, false otherwise
access:  public


Parameters:

mixed   $key  

[ Top ]

method krsort [line 143]

void krsort( [ $sort_flags = NULL])



Tags:

access:  public


Parameters:

int   $sort_flags  

[ Top ]

method ksort [line 147]

void ksort( [ $sort_flags = NULL])



Tags:

access:  public


Parameters:

int   $sort_flags  

[ Top ]

method merge [line 176]

void merge( $arg)

merge any number of array to the main array

arrays must be of the type provided when the object was istanciated




Tags:

var:  any number of array to merge
access:  public


Parameters:

   $arg  

[ Top ]

method multisort [line 165]

void multisort( )



Tags:

access:  public


[ Top ]

method natcasesort [line 184]

void natcasesort( )



Tags:

access:  public


[ Top ]

method natsort [line 188]

void natsort( )



Tags:

access:  public


[ Top ]

method next [line 192]

void next( )



Tags:

access:  public



Implementation of:
Iterator::next
[ Top ]

method offsetExists [line 67]

void offsetExists( $key)



Tags:

access:  public


Parameters:

   $key  

[ Top ]

method offsetget [line 63]

void offsetget( $key)



Tags:

access:  public


Parameters:

   $key  

[ Top ]

method offsetset [line 59]

void offsetset( $key, $value)



Tags:

access:  public


Parameters:

   $key  
   $value  

[ Top ]

method pad [line 196]

void pad( $pad_size, $pad_value)



Tags:

access:  public


Parameters:

int   $pad_size  
mixed   $pad_value  

[ Top ]

method pop [line 205]

object pop( )

returns the last element from the array and removes it



Tags:

access:  public


[ Top ]

method prev [line 213]

void prev( )



Tags:

access:  public


[ Top ]

method product [line 209]

void product( )



Tags:

access:  public


[ Top ]

method push [line 222]

void push( object $var)

adds an object to the internal store



Tags:

access:  public


Parameters:

object   $var  

[ Top ]

method rand [line 230]

void rand( $num_req)



Tags:

access:  public


Parameters:

int   $num_req  

[ Top ]

method reset [line 238]

void reset( )



Tags:

access:  public


[ Top ]

method reverse [line 234]

void reverse( [ $preserve_keys = NULL])



Tags:

access:  public


Parameters:

bool   $preserve_keys  

[ Top ]

method rewind [line 259]

void rewind( )



Tags:

access:  public



Implementation of:
Iterator::rewind
[ Top ]

method rsort [line 263]

void rsort( [ $sort_flags = NULL])



Tags:

access:  public


Parameters:

int   $sort_flags  

[ Top ]

method search [line 271]

void search( $needle, [ $strict = NULL])



Tags:

access:  public


Parameters:

mixed   $needle  
bool   $strict  

[ Top ]

method shift [line 280]

object shift( )

returns an object from the beginnig if the store and remvoes it



Tags:

access:  public


[ Top ]

method shuffle [line 267]

void shuffle( )



Tags:

access:  public


[ Top ]

method slice [line 284]

void slice( $offset, [ $length = NULL], [ $preserve_keys = NULL])



Tags:

access:  public


Parameters:

int   $offset  
int   $length  
bool   $preserve_keys  

[ Top ]

method sort [line 292]

void sort( [ $sort_flags = NULL])



Tags:

access:  public


Parameters:

int   $sort_flags  

[ Top ]

method sum [line 288]

void sum( )



Tags:

access:  public


[ Top ]

method unique [line 242]

void unique( )



Tags:

access:  public


[ Top ]

method unshift [line 251]

void unshift( $var)

prepends a new object to the store



Tags:

access:  public


Parameters:

Object   $var  

[ Top ]

method valid [line 296]

void valid( )



Tags:

access:  public



Implementation of:
Iterator::valid
[ Top ]

method values [line 255]

void values( )



Tags:

access:  public


[ Top ]


Documentation generated on Wed, 15 Oct 2008 09:16:44 -0400 by phpDocumentor 1.4.1