Difference between revisions of "Php SDK Changelog"

From OpenKM Documentation
Jump to: navigation, search
Line 1: Line 1:
 +
== SDK FOR JAVA 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 )
 +
* Change in phpNode($nodeXML) to verify if is document or folder
 +
<source lang="php">
 +
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 JAVA 2.0 ==
 
* '''Added method in PropertyGroup'''
 
* '''Added method in PropertyGroup'''
Line 44: Line 72:
 
* '''Changes in class Node'''
 
* '''Changes in class Node'''
 
  added variable long nodeClass
 
  added variable long nodeClass
 +
 +
== SDK FOR JAVA 1.0.1 ==
 +
* 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>
  
 
[[Category: Extension Guide]]
 
[[Category: Extension Guide]]

Revision as of 17:46, 18 June 2014

SDK FOR JAVA 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 )
  • Change in phpNode($nodeXML) to verify if is document or folder
if(empty($nodeXML->hasChildren)){
  $node->setType(Node::DOCUMENT);
} else {
  $node->setType(Node::FOLDER);
}
  • Change in method makeURI to evaluate empty categories or keywords
foreach ($queryParams->getKeywords() as $keyword) {
  if ($keyword != '') {
    $uri .= '&keyword=' . $keyword;
  }
}

foreach ($queryParams->getCategories() as $category) {
  if($category != ''){
    $uri .= '&category=' . $category;  
  }           
}

SDK FOR JAVA 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 JAVA 1.0.1

  • Change in method makeURI to evaluate empty categories or keywords
foreach ($queryParams->getKeywords() as $keyword) {
  if ($keyword != '') {
    $uri .= '&keyword=' . $keyword;
  }
}

foreach ($queryParams->getCategories() as $category) {
  if($category != ''){
    $uri .= '&category=' . $category;  
  }           
}