for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SRF\Outline;
/**
* Represents a single item, or page, in the outline - contains both the
* SMWResultArray and an array of some of its values, for easier aggregation
*
* @license GNU GPL v2+
* @since 3.1
*/
class OutlineItem {
* @var [type]
public $row;
* @var []
private $vals;
* @param $row
public function __construct( $row ) {
$this->row = $row;
$this->vals = [];
}
* @param $name
* @param $value
public function addFieldValue( $key, $value ) {
if ( array_key_exists( $key, $this->vals ) ) {
$this->vals[$key][] = $value;
} else {
$this->vals[$key] = [ $value ];
public function getFieldValues( $key ) {
return $this->vals[$key];
return [ wfMessage( 'srf_outline_novalue' )->text() ];