示例#1
0
 /**
  * Set identifier of atom
  * @param string $id
  */
 public function setId($id)
 {
     // Decode url encoding for objects
     $this->id = $this->concept->isObject ? rawurldecode($id) : $id;
     // Escape id for database queries
     $this->idEsc = $this->database->escape($this->getMysqlRepresentation());
     $this->path = is_null($this->parentIfc) ? 'resources/' . $this->concept->name : $this->parentIfc->path;
     $this->path .= '/' . $this->getJsonRepresentation();
 }