Commit 7479ec9a authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-891 Fixed typos.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 3d14a501
......@@ -307,7 +307,7 @@ class DeviceManager {
/**
* Builds a Provisioning SyncObject with policies
*
* @param boolean $logPolcies optional, determines if the policies and values should be logged. Default: false
* @param boolean $logPolicies optional, determines if the policies and values should be logged. Default: false
*
* @access public
* @return SyncProvisioning
......
......@@ -246,12 +246,12 @@ class SyncProvisioning extends SyncObject {
* Loads provisioning policies into a SyncProvisioning object.
*
* @param array $policies array with policies' names and values
* @param boolean $logPolcies optional, determines if the policies and values should be logged. Default: false
* @param boolean $logPolicies optional, determines if the policies and values should be logged. Default: false
*
* @access public
* @return void
*/
public function Load($policies = array(), $logPolices = false) {
public function Load($policies = array(), $logPolicies = false) {
$this->LoadDefaultPolicies();
$streamerVars = $this->GetStreamerVars();
......@@ -260,7 +260,7 @@ class SyncProvisioning extends SyncObject {
ZLog::Write(LOGLEVEL_INFO, sprintf("Policy '%s' not supported by the device, ignoring", $p));
continue;
}
if ($logPolices) {
if ($logPolicies) {
ZLog::Write(LOGLEVEL_WBXML, sprintf("Policy '%s' enforced with: %s (%s)", $p, (is_array($v)) ? Utils::PrintAsString(implode(',', $v)) : Utils::PrintAsString($v), gettype($v)));
}
$this->$p = (is_array($v) && empty($v)) ? array() : $v;
......@@ -336,14 +336,14 @@ class SyncProvisioning extends SyncObject {
* Returns the SyncProvisioning instance.
*
* @param array $policies array with policies' names and values
* @param boolean $logPolcies optional, determines if the policies and values should be logged. Default: false
* @param boolean $logPolicies optional, determines if the policies and values should be logged. Default: false
*
* @access public
* @return SyncProvisioning
*/
public static function GetObjectWithPolicies($policies = array(), $logPolices = false) {
public static function GetObjectWithPolicies($policies = array(), $logPolicies = false) {
$p = new SyncProvisioning();
$p->Load($policies, $logPolices);
$p->Load($policies, $logPolicies);
return $p;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment