Update Access Controls, Bridges, Call Block, Call Broadcast classes.
This commit is contained in:
parent
8d1020c8f6
commit
22ec9cd469
|
|
@ -27,7 +27,7 @@ if (!class_exists('access_controls')) {
|
||||||
//assign private variables
|
//assign private variables
|
||||||
$this->app_name = 'access_controls';
|
$this->app_name = 'access_controls';
|
||||||
$this->app_uuid = '1416a250-f6e1-4edc-91a6-5c9b883638fd';
|
$this->app_uuid = '1416a250-f6e1-4edc-91a6-5c9b883638fd';
|
||||||
$this->permission_prefix = 'access_control';
|
$this->permission_prefix = 'access_control_';
|
||||||
$this->list_page = 'access_controls.php';
|
$this->list_page = 'access_controls.php';
|
||||||
$this->table = 'access_controls';
|
$this->table = 'access_controls';
|
||||||
$this->uuid_prefix = 'access_control_';
|
$this->uuid_prefix = 'access_control_';
|
||||||
|
|
@ -49,7 +49,7 @@ if (!class_exists('access_controls')) {
|
||||||
* delete records
|
* delete records
|
||||||
*/
|
*/
|
||||||
public function delete($records) {
|
public function delete($records) {
|
||||||
if (permission_exists($this->permission_prefix.'_delete')) {
|
if (permission_exists($this->permission_prefix.'delete')) {
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
|
|
@ -96,7 +96,7 @@ if (!class_exists('access_controls')) {
|
||||||
* copy records
|
* copy records
|
||||||
*/
|
*/
|
||||||
public function copy($records) {
|
public function copy($records) {
|
||||||
if (permission_exists($this->permission_prefix.'_add')) {
|
if (permission_exists($this->permission_prefix.'add')) {
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ if (!class_exists('bridges')) {
|
||||||
//assign private variables
|
//assign private variables
|
||||||
$this->app_name = 'bridges';
|
$this->app_name = 'bridges';
|
||||||
$this->app_uuid = 'a6a7c4c5-340a-43ce-bcbc-2ed9bab8659d';
|
$this->app_uuid = 'a6a7c4c5-340a-43ce-bcbc-2ed9bab8659d';
|
||||||
$this->permission_prefix = 'bridge';
|
$this->permission_prefix = 'bridge_';
|
||||||
$this->list_page = 'bridges.php';
|
$this->list_page = 'bridges.php';
|
||||||
$this->table = 'bridges';
|
$this->table = 'bridges';
|
||||||
$this->uuid_prefix = 'bridge_';
|
$this->uuid_prefix = 'bridge_';
|
||||||
|
|
@ -49,7 +49,7 @@ if (!class_exists('bridges')) {
|
||||||
* delete records
|
* delete records
|
||||||
*/
|
*/
|
||||||
public function delete($records) {
|
public function delete($records) {
|
||||||
if (permission_exists($this->permission_prefix.'_delete')) {
|
if (permission_exists($this->permission_prefix.'delete')) {
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
|
|
@ -96,7 +96,7 @@ if (!class_exists('bridges')) {
|
||||||
* toggle records
|
* toggle records
|
||||||
*/
|
*/
|
||||||
public function toggle($records) {
|
public function toggle($records) {
|
||||||
if (permission_exists($this->permission_prefix.'_edit')) {
|
if (permission_exists($this->permission_prefix.'edit')) {
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
|
|
@ -165,7 +165,7 @@ if (!class_exists('bridges')) {
|
||||||
* copy records
|
* copy records
|
||||||
*/
|
*/
|
||||||
public function copy($records) {
|
public function copy($records) {
|
||||||
if (permission_exists($this->permission_prefix.'_add')) {
|
if (permission_exists($this->permission_prefix.'add')) {
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ if (!class_exists('call_block')) {
|
||||||
//assign private variables
|
//assign private variables
|
||||||
$this->app_name = 'call_block';
|
$this->app_name = 'call_block';
|
||||||
$this->app_uuid = '9ed63276-e085-4897-839c-4f2e36d92d6c';
|
$this->app_uuid = '9ed63276-e085-4897-839c-4f2e36d92d6c';
|
||||||
$this->permission_prefix = 'call_block';
|
$this->permission_prefix = 'call_block_';
|
||||||
$this->list_page = 'call_block.php';
|
$this->list_page = 'call_block.php';
|
||||||
$this->table = 'call_block';
|
$this->table = 'call_block';
|
||||||
$this->uuid_prefix = 'call_block_';
|
$this->uuid_prefix = 'call_block_';
|
||||||
|
|
@ -49,7 +49,7 @@ if (!class_exists('call_block')) {
|
||||||
* delete records
|
* delete records
|
||||||
*/
|
*/
|
||||||
public function delete($records) {
|
public function delete($records) {
|
||||||
if (permission_exists($this->permission_prefix.'_delete')) {
|
if (permission_exists($this->permission_prefix.'delete')) {
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
|
|
@ -96,7 +96,7 @@ if (!class_exists('call_block')) {
|
||||||
* toggle records
|
* toggle records
|
||||||
*/
|
*/
|
||||||
public function toggle($records) {
|
public function toggle($records) {
|
||||||
if (permission_exists($this->permission_prefix.'_edit')) {
|
if (permission_exists($this->permission_prefix.'edit')) {
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
|
|
@ -165,7 +165,7 @@ if (!class_exists('call_block')) {
|
||||||
* copy records
|
* copy records
|
||||||
*/
|
*/
|
||||||
public function copy($records) {
|
public function copy($records) {
|
||||||
if (permission_exists($this->permission_prefix.'_add')) {
|
if (permission_exists($this->permission_prefix.'add')) {
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ if (!class_exists('call_broadcast')) {
|
||||||
//assign private variables
|
//assign private variables
|
||||||
$this->app_name = 'call_broadcast';
|
$this->app_name = 'call_broadcast';
|
||||||
$this->app_uuid = 'efc11f6b-ed73-9955-4d4d-3a1bed75a056';
|
$this->app_uuid = 'efc11f6b-ed73-9955-4d4d-3a1bed75a056';
|
||||||
$this->permission_prefix = 'call_broadcast';
|
$this->permission_prefix = 'call_broadcast_';
|
||||||
$this->list_page = 'call_broadcast.php';
|
$this->list_page = 'call_broadcast.php';
|
||||||
$this->table = 'call_broadcasts';
|
$this->table = 'call_broadcasts';
|
||||||
$this->uuid_prefix = 'call_broadcast_';
|
$this->uuid_prefix = 'call_broadcast_';
|
||||||
|
|
@ -47,7 +47,7 @@ if (!class_exists('call_broadcast')) {
|
||||||
* delete records
|
* delete records
|
||||||
*/
|
*/
|
||||||
public function delete($records) {
|
public function delete($records) {
|
||||||
if (permission_exists($this->permission_prefix.'_delete')) {
|
if (permission_exists($this->permission_prefix.'delete')) {
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
|
|
@ -94,7 +94,7 @@ if (!class_exists('call_broadcast')) {
|
||||||
* copy records
|
* copy records
|
||||||
*/
|
*/
|
||||||
public function copy($records) {
|
public function copy($records) {
|
||||||
if (permission_exists($this->permission_prefix.'_add')) {
|
if (permission_exists($this->permission_prefix.'add')) {
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue