Add some abilties.

@param $new_abbilities
@return $this
965636
public function add_abilities($new_abbilities)
    {
        foreach ($new_abbilities as $abbility_str) {
            $camel = '';
            $abbility_str = str_replace(':', '', $abbility_str);
            foreach (explode('_', $abbility_str) as $str) {
                $camel .= ucfirst($str);
            }
            $class_name = 'PHPWarrior\Abilities\\' . $camel;
            $this->abilities[$abbility_str] = new $class_name($this);
        }
        return $this;
    }
1029504
public function add()
    {
        $group = $this->Groups->newEntity();
        if ($this->request->is('post')) {
            $group  = $this->Groups->patchEntity($group, $this->request->getData());
            $result = $this->Groups->save($group);
            if ($result) {
                $this->Flash->success(__d('community', 'The group has been saved.'));
                return $this->App->redirect([
                    'apply' => ['action' => 'edit', $result->id],
                ]);
            } else {
                $this->Flash->error(__d('community', 'The group could not be saved. Please, try again.'));
            }
        }

        $parents = $this->Groups->getTreeList();
        $this->set(compact('group', 'parents'));
        $this->set('page_title', __d('community', 'Add new group'));
    }
92556
public function add() {
		if ($this->request->is('post')) {
			$this->AfipFactura->create();
			if ($this->AfipFactura->save($this->request->data)) {
				$this->Session->setFlash(__('The afip factura has been saved.'));
				return $this->redirect(array('action' => 'index'));
			} else {
				$this->Session->setFlash(__('The afip factura could not be saved. Please, try again.'));
			}
		}
		$mesas = $this->AfipFactura->Mesa->find('list');
		$this->set(compact('mesas'));
	}
85005
final public function addNew()
    {
        $this->originalValues = null;
        $this->values = $this->emptyValuesFromDataFields();
        $this->mode = self::RSMODE_CONNECTED_ADDNEW;
    }
750499
public function addAllOperations()
    {
        foreach (OperationScaffolder::getOperations() as $id => $operation) {
            $this->operation($id);
        }
        return $this;
    }
1071695
public function addAll($values)
    {
        foreach ($values as $key => $value)
            $this->set($key, $value);
        return $this;
    }
794792
protected function addWhereConstraints()
    {
        parent::addWhereConstraints();

        $this->query->where($this->table.'.'.$this->morphType, $this->morphClass);

        return $this;
    }
456736
public function append(iterable $values): self
    {
        foreach ($values as $value) {
            $this->add($value);
        }

        return $this;
    }
166392
public function addAttachments($attachments)
    {
        $current = $this->_attachments;
        $this->setAttachments($attachments);
        $this->_attachments = array_merge($current, $this->_attachments);

        return $this;
    }
794717
public function add()
    {
        $user = $this->Users->newEntity();

        if ($this->request->is('post')) {
            $user = $this->Users->patchEntity($user, $this->request->getData());

            if ($this->Users->save($user)) {
                $this->Flash->success(I18N_OPERATION_OK);

                return $this->redirect(['action' => 'index']);
            }

            $this->Flash->error(I18N_OPERATION_NOT_OK);
        }

        $this->set(compact('user'));
    }
20563
public function addRow($values=array()) {
		$row=$this->getBody()->addRow($this->_colCount);
		$row->setValues(\array_values($values));
		return $this;
	}
384689
public function addMessage()
    {
        $messages  = \MUtil_Ra::flatten(func_get_args());
        $messenger = $this->getMessenger();

        foreach ($messages as $message) {
            $messenger->addMessage($message);
        }

        return $this;
    }
715529
public function add(...$numbers)
    {
        foreach ($numbers as $number) {
            $this->number = bcadd($this->number, static::validateInputNumber($number), $this->precision);
        }

        return $this;
    }
820606
protected function addFilters()
    {
        if ($this->parser->getFilters()) {

            $this->query->whereRaw($this->parser->getFilters());
        }

        return $this;
    }
1051057
public function update($new, $options)
    {
        $new = (array) $new;
        $new = $this->App->c::unslash($new);
        $new = $this->App->c::mbTrim($new);

        return $this->merge((array) $options, $new);
    }
1090160
public function add()
    {
        $cmsPermission = $this->CmsPermission->newEntity();
        if ($this->request->is('post')) {
            $cmsPermission = $this->CmsPermission->patchEntity($cmsPermission, $this->request->data);
            if ($this->CmsPermission->save($cmsPermission)) {
                $this->Flash->success('The cms permission has been saved.');
                return $this->redirect(['action' => 'index']);
            } else {
                $this->Flash->error('The cms permission could not be saved. Please, try again.');
            }
        }
        $cmsTerm = $this->CmsPermission->CmsTerm->find('list', ['limit' => 200]);
        $cmsContent = $this->CmsPermission->CmsContent->find('list', ['limit' => 200]);
        $this->set(compact('cmsPermission', 'cmsTerm', 'cmsContent'));
        $this->set('_serialize', ['cmsPermission']);
    }
1159461
protected function addWhereConstraints()
    {
        $this->query->where(
            $this->getQualifiedForeignPivotKeyName(), '=', $this->parent->{$this->parentKey}
        );

        return $this;
    }