MCPcopy Create free account
hub / github.com/Rello/analytics / create

Method create

lib/Db/PanoramaMapper.php:84–97  ·  view source on GitHub ↗

* create report * @param $name * @param $type * @param $parent * @param $pages * @return int * @throws Exception */

($name, $type, $parent, $pages)

Source from the content-addressed store, hash-verified

82 * @throws Exception
83 */
84 public function create($name, $type, $parent, $pages)
85 {
86 $sql = $this->db->getQueryBuilder();
87 $sql->insert(self::TABLE_NAME)
88 ->values([
89 'user_id' => $sql->createNamedParameter($this->userId),
90 'name' => $sql->createNamedParameter($name),
91 'type' => $sql->createNamedParameter($type),
92 'parent' => $sql->createNamedParameter($parent),
93 'pages' => $sql->createNamedParameter($pages),
94 ]);
95 $sql->executeStatement();
96 return (int)$sql->getLastInsertId();
97 }
98
99 /**
100 * get single panorama including subpages for user

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected