diff options
Diffstat (limited to 'admin')
-rw-r--r-- | admin/index.php | 4 | ||||
-rw-r--r-- | admin/page/index.php | 2 | ||||
-rw-r--r-- | admin/page/insert.php | 6 | ||||
-rw-r--r-- | admin/page/search.php | 2 | ||||
-rw-r--r-- | admin/page/update.php | 6 | ||||
-rw-r--r-- | admin/post/index.php | 2 | ||||
-rw-r--r-- | admin/post/insert.php | 6 | ||||
-rw-r--r-- | admin/post/search.php | 2 | ||||
-rw-r--r-- | admin/post/update.php | 6 |
9 files changed, 18 insertions, 18 deletions
diff --git a/admin/index.php b/admin/index.php index 788cee4..b3508b5 100644 --- a/admin/index.php +++ b/admin/index.php @@ -25,7 +25,7 @@ $UserCountStatement = $Database->query(sprintf($execute, User\Attribute::TABLE)) try { $LastPage = Page\Factory::build($LastPageStatement->fetchColumn()); - $LastPageUser = User\Factory::build($LastPage->attr('user')); + $LastPageUser = User\Factory::build($LastPage->get('user')); $PageItemTemplate = generatePageItemTemplate($LastPage, $LastPageUser); } @@ -35,7 +35,7 @@ catch(User\Exception $Exception){} try { $LastPost = Post\Factory::build($LastPostStatement->fetchColumn()); - $LastPostUser = User\Factory::build($LastPost->attr('user')); + $LastPostUser = User\Factory::build($LastPost->get('user')); $PostItemTemplate = generatePostItemTemplate($LastPost, $LastPostUser); } diff --git a/admin/page/index.php b/admin/page/index.php index 7c8b1a6..2fde136 100644 --- a/admin/page/index.php +++ b/admin/page/index.php @@ -34,7 +34,7 @@ $pageIDs = $Database->query(sprintf($execSQL, Page\Attribute::TABLE))->fetchAll( foreach($pageIDs as $pageID) { try { $Page = Page\Factory::build($pageID); - $User = User\Factory::build($Page->attr('user')); + $User = User\Factory::build($Page->get('user')); $ItemTemplate = generatePageItemTemplate($Page, $User); diff --git a/admin/page/insert.php b/admin/page/insert.php index 979dbd9..1f9d391 100644 --- a/admin/page/insert.php +++ b/admin/page/insert.php @@ -41,9 +41,9 @@ $userIDs = $Database->query(sprintf('SELECT id FROM %s ORDER BY fullname ASC', U foreach($userIDs->fetchAll($Database::FETCH_COLUMN) as $userID) { $User = User\Factory::build($userID); $userAttributes[] = [ - 'ID' => $User->attr('id'), - 'FULLNAME' => $User->attr('fullname'), - 'USERNAME' => $User->attr('username'), + 'ID' => $User->get('id'), + 'FULLNAME' => $User->get('fullname'), + 'USERNAME' => $User->get('username'), ]; } diff --git a/admin/page/search.php b/admin/page/search.php index eb57a7c..ba7f49a 100644 --- a/admin/page/search.php +++ b/admin/page/search.php @@ -18,7 +18,7 @@ if($search = HTTP::GET('q')) { foreach($pageIDs as $pageID) { try { $Page = Page\Factory::build($pageID); - $User = User\Factory::build($Page->attr('user')); + $User = User\Factory::build($Page->get('user')); $pages[] = generatePageItemTemplate($Page, $User); } diff --git a/admin/page/update.php b/admin/page/update.php index 8cbef7f..5e54b03 100644 --- a/admin/page/update.php +++ b/admin/page/update.php @@ -44,9 +44,9 @@ try { foreach($userIDs->fetchAll($Database::FETCH_COLUMN) as $userID) { $User = User\Factory::build($userID); $userAttributes[] = [ - 'ID' => $User->attr('id'), - 'FULLNAME' => $User->attr('fullname'), - 'USERNAME' => $User->attr('username'), + 'ID' => $User->get('id'), + 'FULLNAME' => $User->get('fullname'), + 'USERNAME' => $User->get('username'), ]; } diff --git a/admin/post/index.php b/admin/post/index.php index e18a634..bb38676 100644 --- a/admin/post/index.php +++ b/admin/post/index.php @@ -34,7 +34,7 @@ $postIDs = $Database->query(sprintf($execSQL, Post\Attribute::TABLE))->fetchAll( foreach($postIDs as $postID) { try { $Post = Post\Factory::build($postID); - $User = User\Factory::build($Post->attr('user')); + $User = User\Factory::build($Post->get('user')); $ItemTemplate = generatePostItemTemplate($Post, $User); diff --git a/admin/post/insert.php b/admin/post/insert.php index 6b1876e..b4e2542 100644 --- a/admin/post/insert.php +++ b/admin/post/insert.php @@ -41,9 +41,9 @@ $userIDs = $Database->query(sprintf('SELECT id FROM %s ORDER BY fullname ASC', U foreach($userIDs->fetchAll($Database::FETCH_COLUMN) as $userID) { $User = User\Factory::build($userID); $userAttributes[] = [ - 'ID' => $User->attr('id'), - 'FULLNAME' => $User->attr('fullname'), - 'USERNAME' => $User->attr('username'), + 'ID' => $User->get('id'), + 'FULLNAME' => $User->get('fullname'), + 'USERNAME' => $User->get('username'), ]; } diff --git a/admin/post/search.php b/admin/post/search.php index 8fe6a51..ec2391c 100644 --- a/admin/post/search.php +++ b/admin/post/search.php @@ -18,7 +18,7 @@ if($search = HTTP::GET('q')) { foreach($postIDs as $postID) { try { $Post = Post\Factory::build($postID); - $User = User\Factory::build($Post->attr('user')); + $User = User\Factory::build($Post->get('user')); $posts[] = generatePostItemTemplate($Post, $User); } diff --git a/admin/post/update.php b/admin/post/update.php index 6fb621d..e22a54a 100644 --- a/admin/post/update.php +++ b/admin/post/update.php @@ -44,9 +44,9 @@ try { foreach($userIDs->fetchAll($Database::FETCH_COLUMN) as $userID) { $User = User\Factory::build($userID); $userAttributes[] = [ - 'ID' => $User->attr('id'), - 'FULLNAME' => $User->attr('fullname'), - 'USERNAME' => $User->attr('username'), + 'ID' => $User->get('id'), + 'FULLNAME' => $User->get('fullname'), + 'USERNAME' => $User->get('username'), ]; } |