function status($onlyPending = false)
 {
     $this->assertModuleIsSet();
     $all = $this->getAllMigrations();
     return $onlyPending ? array_findAll($all, Migration::status, Migration::PENDING) : $all;
 }
 /**
  * Extracts from an array all elements where the specified field matches the given value.
  * Supports arrays of objects or arrays of arrays.
  *
  * @param string $fld
  * @param mixed  $val
  * @param bool   $strict TRUE to perform strict equality testing.
  *
  * @return PowerArray Self, for chaining.
  */
 function findAll($fld, $val, $strict = false)
 {
     $this->A = array_findAll($this->A, $fld, $val, $strict);
     return $this;
 }