Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
match/app/src/Model/Entity/MatchgridSetting.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

…ntroller (CO-2470)
54 lines (47 sloc)
1.73 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* COmanage Match Matchgrid Setting Entity | |
* | |
* Portions licensed to the University Corporation for Advanced Internet | |
* Development, Inc. ("UCAID") under one or more contributor license agreements. | |
* See the NOTICE file distributed with this work for additional information | |
* regarding copyright ownership. | |
* | |
* UCAID licenses this file to you under the Apache License, Version 2.0 | |
* (the "License"); you may not use this file except in compliance with the | |
* License. You may obtain a copy of the License at: | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
* See the License for the specific language governing permissions and | |
* limitations under the License. | |
* | |
* @link http://www.internet2.edu/comanage COmanage Project | |
* @package match | |
* @since COmanage Match v1.0.0 | |
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) | |
*/ | |
declare(strict_types = 1); | |
namespace App\Model\Entity; | |
use Cake\ORM\Entity; | |
class MatchgridSetting extends Entity { | |
protected $_accessible = [ | |
'*' => true, | |
'id' => false, | |
'slug' => false, | |
]; | |
/** | |
* Determine the name of the sequence used to manage the Reference ID. | |
* | |
* @since COmanage Match v1.1.0 | |
* @return string Reference ID Sequence name | |
*/ | |
protected function _getRefIdSequenceName() { | |
// We'll use the matchgrid ID rather than name in the sequence name to avoid | |
// issues if the matchgrid is renamed for some reason. | |
return "mg_seq_" . (string)$this->matchgrid_id; | |
} | |
} |