@@ 520-527 (lines=8) @@ | ||
517 | * |
|
518 | * @return bool |
|
519 | */ |
|
520 | public function disablePublicAccess($project_id) |
|
521 | { |
|
522 | return $this->exists($project_id) && |
|
523 | $this->db |
|
524 | ->table(self::TABLE) |
|
525 | ->eq('id', $project_id) |
|
526 | ->save(['is_public' => 0, 'token' => '']); |
|
527 | } |
|
528 | ||
529 | /** |
|
530 | * Get available views. |
|
@@ 504-511 (lines=8) @@ | ||
501 | * |
|
502 | * @return bool |
|
503 | */ |
|
504 | public function enablePublicAccess($project_id) |
|
505 | { |
|
506 | return $this->exists($project_id) && |
|
507 | $this->db |
|
508 | ->table(self::TABLE) |
|
509 | ->eq('id', $project_id) |
|
510 | ->save(['is_public' => 1, 'token' => Token::getToken()]); |
|
511 | } |
|
512 | ||
513 | /** |
|
514 | * Disable public access for a project. |