Location: PHPKode > scripts > ps queue > ps-queue/list.inter.php
<?php

/* Basic List Interface
 * By Asher Holley (http://www.wolfoxinc.com/opensource/)
 * Released under the GNU General Public License ( http://www.opensource.org/licenses/gpl-license.html )
 * Copyright © 2006 Asher Holley
 *
 * This contains a useful interface for list like structures like stacks,
      queues, bags, sets, etc. */

interface List_Inter {
	public function top();
	public function &top_ref();
	public function push();
	public function push_ref( &$a );
	public function pop();
	public function &pop_ref();
	public function index( $i );
	public function &index_ref( $i );
	public function count();
	public function is_empty();
	public function clear();
	public function get_list();
}

?>
Return current item: ps queue