Difference between revisions of "Php SDK Changelog"

From OpenKM Documentation
Jump to: navigation, search
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== SDK FOR JAVA 2.0.1 ==
+
== SDK for PHP 2.0.2 ==
 +
* Removed two contants in class Node
 +
const DOCUMENT = 1;
 +
const FOLDER = 2;
 +
* Removed var $type into class Node to indentify node type ( document or folder )
 +
* Solve bug in search to identify with instanceof the node type (document or folder )
 +
 
 +
== SDK for PHP 2.0.1 ==
 
* Added two contants in class Node
 
* Added two contants in class Node
 
  const DOCUMENT = 1;
 
  const DOCUMENT = 1;
 
  const FOLDER = 2;
 
  const FOLDER = 2;
 
* Added var $type into class Node to indentify node type ( document or folder )
 
* Added var $type into class Node to indentify node type ( document or folder )
* Change in phpNode($nodeXML) to verify if is document or folder
+
* Solve bug in search to identify node document or folder
<source lang="php">
+
* Solve bug in search with empty categories and keywords
if(empty($nodeXML->hasChildren)){
 
  $node->setType(Node::DOCUMENT);
 
} else {
 
  $node->setType(Node::FOLDER);
 
}
 
</source>
 
* Change in method makeURI to evaluate empty categories or keywords
 
<source lang="php">
 
foreach ($queryParams->getKeywords() as $keyword) {
 
  if ($keyword != '') {
 
    $uri .= '&keyword=' . $keyword;
 
  }
 
}
 
 
 
foreach ($queryParams->getCategories() as $category) {
 
  if($category != ''){
 
    $uri .= '&category=' . $category; 
 
  }         
 
}
 
</source>
 
  
== SDK FOR JAVA 2.0 ==
+
== SDK for PHP 2.0 ==
 
* '''Added method in PropertyGroup'''
 
* '''Added method in PropertyGroup'''
 
<source lang="php">
 
<source lang="php">
Line 73: Line 60:
 
  added variable long nodeClass
 
  added variable long nodeClass
  
== SDK FOR JAVA 1.0.1 ==
+
== SDK for PHP 1.0.1 ==
* Change in method makeURI to evaluate empty categories or keywords
+
* Solve bug in search with empty categories and keywords
<source lang="php">
 
foreach ($queryParams->getKeywords() as $keyword) {
 
  if ($keyword != '') {
 
    $uri .= '&keyword=' . $keyword;
 
  }
 
}
 
 
 
foreach ($queryParams->getCategories() as $category) {
 
  if($category != ''){
 
    $uri .= '&category=' . $category; 
 
  }         
 
}
 
</source>
 
 
 
 
[[Category: Extension Guide]]
 
[[Category: Extension Guide]]

Latest revision as of 17:20, 27 August 2014

SDK for PHP 2.0.2

  • Removed two contants in class Node
const DOCUMENT = 1;
const FOLDER = 2;
  • Removed var $type into class Node to indentify node type ( document or folder )
  • Solve bug in search to identify with instanceof the node type (document or folder )

SDK for PHP 2.0.1

  • Added two contants in class Node
const DOCUMENT = 1;
const FOLDER = 2;
  • Added var $type into class Node to indentify node type ( document or folder )
  • Solve bug in search to identify node document or folder
  • Solve bug in search with empty categories and keywords

SDK for PHP 2.0

  • Added method in PropertyGroup
public function getPropertyGroupForm($grpName);
  • Added methods in Auth
public void createUser($user, $password, $email, $name, $active);
public void deleteUser($user);
public void updateUser($user, $password, $email, $name, $active);
public void createRole($role, $active);
public void deleteRole($role);
public void updateRole($role, $active);
public void assignRole($user, $role);
public void removeRole($user, $role);
  • Added methods in Document
public function setLanguage($docId, $lang);
public function setTitle($docId, $title);
public function setDocumentNodeClass($docId, $ncId);
public Function getDetectedLanguages();
  • Changes in class Document
added variable String title
added variable String language
  • Changes in class Folder
added variable long style;
  • Changes in class QueryParams

Variable folder replaces removed variable path to indicate folder from where starting searching. Variable folderRecursive indicates if search must be done in folder path and subfolders.

added variable String folder
added variable boolean folderRecursive
added variable String title
added variable String language
added variable String notes
removed instance variable String path
  • Changes in class QueryResult
added variable Node node
added variable boolean attachment
removed variable Document document
removed variable Folder folder
  • Changes in class Node
added variable long nodeClass

SDK for PHP 1.0.1

  • Solve bug in search with empty categories and keywords