Dev#98799 resa pnb
Merge request reports
Activity
Filter activity
- Resolved by Laurent
- Resolved by Laurent
- cosmogramme/sql/patch/patch_380.php 0 → 100644
1 <?php 2 $adapter = Zend_Db_Table_Abstract::getDefaultAdapter(); 3 $adapter->query('CREATE TABLE if not exists `hold_pnb` ( ' 4 . 'id int(11) unsigned not null auto_increment,' 5 . 'record_origin_id varchar(50) not null,' 6 . 'user_id int(11),' 7 . 'subscriber_id varchar(20) not null,' 8 . 'hold_date datetime,' 9 . 'expiration_date datetime,' 10 . 'primary key (id),' 11 . 'key (`user_id`),' 12 . 'key (`record_origin_id`)' - library/Class/Hold/Pnb.php 0 → 100644
8 * 9 * There are special exceptions to the terms and conditions of the AGPL as it 10 * is applied to this software (see README file). 11 * 12 * BOKEH is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU AFFERO GENERAL PUBLIC LICENSE for more details. 16 * 17 * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE 18 * along with BOKEH; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 */ 21 22 class Class_Hold_PnbLoader extends Storm_Model_Loader { 23 use Trait_TimeSource; changed this line in version 5 of the diff
- library/Class/Hold/Pnb.php 0 → 100644
86 87 class Class_Hold_Pnb extends Storm_Model_Abstract { 88 use Trait_TimeSource, Trait_Translator, Trait_Logger; 89 90 protected 91 $_table_name = 'hold_pnb', 92 $_loader_class = 'Class_Hold_PnbLoader', 93 $_belongs_to = ['user' => ['model'=>'Class_Users', 94 'referenced_in'=>'user_id']], 95 $_default_attribute_values = ['expiration_date' => null, 96 'user_id' => null, 97 'subscriber_id' => '']; 98 99 100 public function getNextExpirationDate(){ 101 $days = Class_AdminVar::getValueOrDefault('DILICOM_PNB_HOLD_MAX_AVAILABILITY'); changed this line in version 5 of the diff
- Resolved by Laurent
- Resolved by Laurent
- Resolved by Laurent
- Resolved by Laurent
- Resolved by Laurent
- Resolved by Laurent
- Resolved by Laurent
60 if ($hold->isAllocated()) 61 return $this->_('Disponible jusqu\'au %s', 62 $expiration_date); 63 64 if ($hold->isExpired()) 65 return $this->_('Expirée depuis le %s', 66 $expiration_date); 67 } 68 69 70 public function renderDeleteHoldAction($hold) { 71 return $this->view->tagAnchor($this->view->url(['action' => 'delete-pnb-hold', 72 'id' => $hold->getId()]), 73 74 $this->view->tagImg(URL_IMG . 'bouton/cancel.gif', 75 ['onclick' => 'return confirm(\''. str_replace("'", "\\'", $this->_('Etes vous sûr de vouloir supprimer cette réservation ?')) . '\')' changed this line in version 5 of the diff
- Resolved by Laurent