Populate data on current input list

@param array $data An associative array with input names and
corespondent values

@return InputFilterInterface
358871
public function setData($data)
    {
        foreach ($data as $name => $value) {
            if ($this->has($name)) {
                $this->get($name)->setValue($value);
            }
        }
        return $this;
    }
1374487
protected function fromArray($data)
    {
        if (empty($data)) {
            return $this;
        }

        $this->data = array_replace_recursive($this->data, $data);

        return $this;
    }
776609
public function populate($data = array())
    {
        parent::populate($data);

        if (isset($data['scheduleOccurrenceAuto']) && $data['scheduleOccurrenceAuto'] !== null) {
            $this->scheduleOccurrenceAuto = $data['scheduleOccurrenceAuto'];
        }

        if (isset($data['occurrenceNumber']) && $data['occurrenceNumber'] !== null) {
            $this->occurrenceNumber = $data['occurrenceNumber'];
        }

        if (isset($data['winningOccurrenceNumber']) && $data['winningOccurrenceNumber'] !== null) {
            $this->occurrenceNumber = $data['winningOccurrenceNumber'];
        }

        if (isset($data['occurrenceType']) && $data['occurrenceType'] !== null) {
            $this->occurrenceType = $data['occurrenceType'];
        }
    }
1241710
public function populate($data = array())
    {
        if (isset($data['partner']) && $data['partner'] !== null) {
            $this->partner = $data['partner'];
        }

        $this->title = (isset($data['title'])) ? $data['title'] : null;
        $this->type = (isset($data['type']) && $data['type'] !== null) ? $data['type'] : null;

        if (isset($data['mainImage']) && $data['mainImage'] !== null) {
            $this->mainImage = $data['mainImage'];
        }

        if (isset($data['secondImage']) && $data['secondImage'] !== null) {
            $this->secondImage = $data['secondImage'];
        }

        if (isset($data['active']) && $data['active'] !== null) {
            $this->active = $data['active'];
        }

        $this->layout           = (isset($data['layout'])) ? $data['layout'] : null;
        $this->stylesheet       = (isset($data['stylesheet'])) ? $data['stylesheet'] : null;

        $this->pushHome         = (isset($data['pushHome']) && $data['pushHome'] !== null) ? $data['pushHome'] : 0;
        $this->displayHome      = (isset($data['displayHome']) && $data['displayHome'] !== null) ?
            $data['displayHome'] :
            0;
        $this->prizeCategory   = (isset($data['prizeCategory'])) ? $data['prizeCategory'] : null;

        $this->publicationDate  = (isset($data['publicationDate']) && $data['publicationDate'] !== null) ?
            DateTime::createFromFormat('d/m/Y', $data['publicationDate']) :
            null;
        $this->endDate         = (isset($data['endDate']) && $data['endDate'] !== null) ?
            DateTime::createFromFormat('d/m/Y', $data['endDate']) :
            null;
        $this->startDate       = (isset($data['startDate']) && $data['startDate'] !== null) ?
            DateTime::createFromFormat('d/m/Y', $data['startDate']) :
            null;

        $this->identifier       = (isset($data['identifier'])) ? $data['identifier'] : null;
        $this->welcomeBlock    = (isset($data['welcomeBlock'])) ? $data['welcomeBlock'] : null;
        $this->termsBlock       = (isset($data['termsBlock'])) ? $data['termsBlock'] : null;
        $this->conditionsBlock  = (isset($data['conditionsBlock'])) ? $data['conditionsBlock'] : null;

        $this->fbShareDescription   = (isset($data['fbShareDescription'])) ? $data['fbShareDescription'] : null;
        $this->fbShareImage     = (isset($data['fbShareImage'])) ? $data['fbShareImage'] : null;
        $this->fbRequestMessage = (isset($data['fbRequestMessage'])) ? $data['fbRequestMessage'] : null;
        $this->twShareMessage   = (isset($data['twShareMessage'])) ? $data['twShareMessage'] : null;
        $this->emailSubjectMessage   = (isset($data['emailSubjectMessage'])) ? $data['emailSubjectMessage'] : null;
        $this->emailShareMessage   = (isset($data['emailShareMessage'])) ? $data['emailShareMessage'] : null;
    }
511278
public function addDataArray(array $data)
    {
        $this->data = $data;
        $this->pager->setTotalRows(\count($this->data));

        return $this;
    }
1103266
public static function createFromArray(array $data)
    {
        $self = new self();

        foreach ($data as $searchResult) {
            $self->addSearchResult(KeySearchResult::createFromArray($searchResult));
        }

        return $self;
    }
904168
function filter($data = array())
    {
        if (! is_array($data)) {
            return $data;
        }
        // first apply the filters to the ROOT
        if (isset($this->filters[self::SELECTOR_ROOT])) {
            /* @var $rootFilters FilterSet */
            $rootFilters = $this->filters[self::SELECTOR_ROOT];
            $data = $rootFilters->applyFilters($data);
        }
        foreach ($data as $key => $value) {
            $data[$key] = $this->filterItem($data, $key);
        }
        return $data;
    }
1327990
public function populate($data = array())
    {
        $this->title = (isset($data['title'])) ? $data['title'] : null;
        $this->dynarea = (isset($data['dynarea'])) ? $data['dynarea'] : null;
        if (isset($data['is_active']) && $data['is_active'] != null) {
            $this->is_active = $data['is_active'];
        }
        if (isset($data['position']) && $data['position'] != null) {
            $this->position = $data['position'];
        }
        $this->identifier = (isset($data['identifier'])) ? $data['identifier'] : null;
        $this->type = (isset($data['type'])) ? $data['type'] : null;
    }
1081007
public function populate($data = array())
    {
        parent::populate($data);

        if (isset($data['postDisplayMode']) && $data['postDisplayMode'] !== null) {
            $this->postDisplayMode = $data['postDisplayMode'];
        }

        if (isset($data['voteAnonymous']) && $data['voteAnonymous'] !== null) {
            $this->voteAnonymous = $data['voteAnonymous'];
        }
    }
1133628
public function initFromArray(array $data) {

        $this->traitInitFromArray($data);

        if (!empty($data['params'])) {
            $this->setParams((new ParamsPart())->initFromArray($data['params']));
        }

        return $this;

    }
935137
public function data(array $data)
    {
        $this->columns(array_keys($data))->values(array_values($data));

        return $this;
    }
865927
public function add(array $data): Insert
    {
        if (!isset($data[0]) && count($this->fields) == 0) {
            $this->fields(array_keys($data));
        }

        $this->data[] = $data;
        return $this;
    }
306610
public function populate($data = array())
    {
        $this->title = (isset($data['title'])) ? $data['title'] : null;
        if (isset($data['is_active']) && $data['is_active'] != null) {
            $this->is_active = $data['is_active'];
        }
        if (isset($data['content']) && $data['content'] != null) {
            $this->content = $data['content'];
        }
        $this->identifier = (isset($data['identifier'])) ? $data['identifier'] : null;
    }
278306
public function populate($data = array())
    {
        if (isset($data['id']) && $data['id'] != null) {
            $this->id    = $data['id'];
        }

        if (isset($data['password']) && $data['password'] != null) {
            $this->password    = $data['password'];
        }
        if (isset($data['avatar']) && $data['avatar'] != null) {
            $this->avatar    = $data['avatar'];
        }
        if (isset($data['state'])) {
            $this->state    = $data['state'];
        }
        if (isset($data['postalCode'])) {
            $this->postalCode    = $data['postalCode'];
        }

        if (isset($data['dob']) && $data['dob'] != null) {
            $this->dob = DateTime::createFromFormat('Y-m-d', $data['dob']);
        }

        if (isset($data['optin'])) {
            $this->optin    = $data['optin'];
        }

        if (isset($data['optin2'])) {
            $this->optin2    = $data['optin2'];
        }

        if (isset($data['optinPartner'])) {
            $this->optinPartner    = $data['optinPartner'];
        }
        if (isset($data['username']) && $data['username'] != null) {
            $this->username    = $data['username'];
        }
        if (isset($data['email']) && $data['email'] != null) {
            $this->email    = $data['email'];
        }
        if (isset($data['displayName']) && $data['displayName'] != null) {
            $this->displayName    = $data['displayName'];
        }
        if (isset($data['firstname']) && $data['firstname'] != null) {
            $this->firstname    = $data['firstname'];
        }
        if (isset($data['lastname']) && $data['lastname'] != null) {
            $this->lastname    = $data['lastname'];
        }
        if (isset($data['title']) && $data['title'] != null) {
            $this->title    = $data['title'];
        }
        if (isset($data['address']) && $data['address'] != null) {
            $this->address    = $data['address'];
        }
        if (isset($data['address2'])) {
            $this->address2    = $data['address2'];
        }
        if (isset($data['city']) && $data['city'] != null) {
            $this->city    = $data['city'];
        }
        if (isset($data['country']) && $data['country'] != null) {
            $this->country    = $data['country'];
        }
        if (isset($data['telephone']) && $data['telephone'] != null) {
            $this->telephone    = $data['telephone'];
        }
        if (isset($data['mobile']) && $data['mobile'] != null) {
            $this->mobile    = $data['mobile'];
        }
        if (isset($data['registrationSource']) && $data['registrationSource'] != null) {
            $this->registrationSource    = $data['registrationSource'];
        }
    }
717275
public function fill(array $data) {
        if ($this->isFullyGuarded()) {
            throw new MassAssignmentException(sprintf('Cannot assign attributes as %s is locked', get_class($this)));
        }

        foreach ($data as $key => $value) {
            if ($this->isFillable($key) && !$this->isGuarded($key)) {
                $this->set($key, $value);
            }
        }

        return $this;
    }
297526
public function setArray(array $data)
    {
        foreach ($data as $name => $value) {
            $this->set($name, $value);
        }
        return $this;
    }
1036680
public function setData(array $data)
    {
        foreach ($data as $key => $val) {
            $setter = $this->setter($key);
            if (is_callable([ $this, $setter ])) {
                $this->{$setter}($val);
            } else {
                $this->{$key} = $val;
            }
        }

        return $this;
    }