You are here

protected function HostingDeployForm::guessStrategy in Aegir Deploy 7.3

1 call to HostingDeployForm::guessStrategy()
HostingDeployForm::determineExistingStrategy in includes/HostingDeployForm.inc

File

includes/HostingDeployForm.inc, line 59
The HostingDeployForm class.

Class

HostingDeployForm
@file The HostingDeployForm class.

Code

protected function guessStrategy() {
  foreach ($this
    ->getStrategyRequiredFields() as $strategy => $fields) {
    foreach ($fields as $field) {
      if (!empty($this->platform
        ->getFieldValue($field))) {
        return $strategy;
      }
    }
  }
  return 'none';
}