public function getData()
    {
        $data = new ArrayList();
        if ($this->CreatedCount()) {
            $data->push(ArrayData::create(array("Title" => _t('Consumer.CREATED', 'Created'))));
            $data->merge($this->getCreated());
        }
        if ($this->UpdatedCount()) {
            $data->push(ArrayData::create(array("Title" => _t('Consumer.UPDATED', 'Updated'))));
            $data->merge($this->getUpdated());
        }
        if ($this->DeletedCount()) {
            $data->push(ArrayData::create(array("Title" => _t('Consumer.DELETED', 'Deleted'))));
            $data->merge($this->$this->getDeleted());
        }
        return $data;
    }
public function getData()
    {
        $data = new ArrayList();
        if ($this->CreatedCount()) {
            $data->push(ArrayData::create(array("Title" => _t('Consumer.CREATED', 'Created'))));
            $data->merge($this->getCreated());
        }
        if ($this->UpdatedCount()) {
            $data->push(ArrayData::create(array("Title" => _t('Consumer.UPDATED', 'Updated'))));
            $data->merge($this->getUpdated());
        }
        if ($this->DeletedCount()) {
            $data->push(ArrayData::create(array("Title" => _t('Consumer.DELETED', 'Deleted'))));
            $data->merge($this->$this->getDeleted());
        }
        return $data;
    }
public function getData ( ) { $ data = new ArrayList ( ) ; if ( $ this -> CreatedCount ( ) ) { $ data -> push ( ArrayData :: create ( array ( "Title" => _t ( 'Consumer.CREATED' , 'Created' ) ) ) ) ; $ data -> merge ( $ this -> getCreated ( ) ) ; } if ( $ this -> UpdatedCount ( ) ) { $ data -> push ( ArrayData :: create ( array ( "Title" => _t ( 'Consumer.UPDATED' , 'Updated' ) ) ) ) ; $ data -> merge ( $ this -> getUpdated ( ) ) ; } if ( $ this -> DeletedCount ( ) ) { $ data -> push ( ArrayData :: create ( array ( "Title" => _t ( 'Consumer.DELETED' , 'Deleted' ) ) ) ) ; $ data -> merge ( $ this -> $ this -> getDeleted ( ) ) ; } return $ data ; }
Prepare the boby for an email or build task
@return \SilverStripe\ORM\ArrayList
Prepare the boby for an email or build task