Example #1
0
 /**
  * Returns an array of layouts from the current database that are
  * available with the current server settings and the current
  * user name and password credentials.
  *
  * @return array List of layout names.
  * @throws FileMakerException
  */
 public function listLayouts()
 {
     $request = $this->execute(array('-db' => $this->getProperty('database'), '-layoutnames' => true));
     $parser = new FMResultSet($this);
     $result = $parser->parse($request);
     $list = array();
     foreach ($parser->parsedResult as $data) {
         $list[] = $data['fields']['LAYOUT_NAME'][0];
     }
     return $list;
 }
Example #2
0
 /**
  * 
  * @param string $xml
  * @return Result
  * @throws \tranduchieu\FileMaker\FileMakerException
  */
 protected function _getResult($xml)
 {
     $parser = new FMResultSet($this->fm);
     $parseResult = $parser->parse($xml);
     $result = new Result($this->fm);
     $parseResult = $parser->setResult($result, $this->_recordClass);
     return $result;
 }