コード例 #1
0
 /**
  * Get an Object's property and return it as an array 
  * 
  * This returns an array even if it is a scalar or null
  * 
  * @todo Allow the getProperty method to query the object type information and
  * return multivalue properties as arrays even if empty or if only a single value
  * is present.
  * @param Object $obj Object
  * @param String $propName Property Name
  * @returns mixed[]
  * @api CMIS-Helper
  * @since CMIS-1.0
  */
 function getMultiValuedProp($obj, $propName)
 {
     if (isset($obj->properties[$propName])) {
         return CMISRepositoryWrapper::getAsArray($obj->properties[$propName]);
     }
     return array();
 }