<?php
/***************************************************************************
- * Copyright (C) 2003-2007 Polytechnique.org *
+ * Copyright (C) 2003-2011 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
+/** An iterator.
+ */
interface PlIterator
{
+ /** Fetch and return the next element of the iterator.
+ * If no more element is available, return null.
+ */
public function next();
+
+ /** Return the number of element of the iterator.
+ */
public function total();
+
+ /** True if the current element is the first element.
+ */
public function first();
+
+ /** True if the current element is the last element.
+ */
public function last();
}