Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
z-push
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Björn Fischer
z-push
Commits
7479ec9a
Commit
7479ec9a
authored
May 31, 2016
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-891 Fixed typos.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
3d14a501
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
devicemanager.php
src/lib/core/devicemanager.php
+1
-1
syncprovisioning.php
src/lib/syncobjects/syncprovisioning.php
+6
-6
No files found.
src/lib/core/devicemanager.php
View file @
7479ec9a
...
...
@@ -307,7 +307,7 @@ class DeviceManager {
/**
* Builds a Provisioning SyncObject with policies
*
* @param boolean $logPol
cies
optional, determines if the policies and values should be logged. Default: false
* @param boolean $logPol
icies
optional, determines if the policies and values should be logged. Default: false
*
* @access public
* @return SyncProvisioning
...
...
src/lib/syncobjects/syncprovisioning.php
View file @
7479ec9a
...
...
@@ -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 $logPol
cies
optional, determines if the policies and values should be logged. Default: false
* @param boolean $logPol
icies
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
(),
$logPolic
i
es
=
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
(
$logPolic
i
es
)
{
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 $logPol
cies
optional, determines if the policies and values should be logged. Default: false
* @param boolean $logPol
icies
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
(),
$logPolic
i
es
=
false
)
{
$p
=
new
SyncProvisioning
();
$p
->
Load
(
$policies
,
$logPolices
);
$p
->
Load
(
$policies
,
$logPolic
i
es
);
return
$p
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment