repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/database/migrations/2014_10_12_000000_create_users_table.php | database/migrations/2014_10_12_000000_create_users_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('users', function (Blueprint $table): void {
$table->id();
$table->string('name');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('users');
}
}
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/database/migrations/2014_10_12_100000_create_password_resets_table.php | database/migrations/2014_10_12_100000_create_password_resets_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePasswordResetsTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('password_resets', function (Blueprint $table): void {
$table->string('email')->index();
$table->string('token');
$table->timestamp('created_at')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('password_resets');
}
}
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/database/migrations/2022_08_04_232950_create_admin_permissions_table.php | database/migrations/2022_08_04_232950_create_admin_permissions_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAdminPermissionsTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('admin_permissions', function (Blueprint $table): void {
$table->id();
$table->string('name')->nullable();
$table->string('icon')->nullable();
$table->string('path')->nullable();
$table->string('url')->nullable();
$table->string('title')->nullable();
$table->tinyInteger('hidden')->nullable()->comment('是否隐藏 1:是 0否');
$table->tinyInteger('is_menu')->nullable()->comment('是否菜单 1:是 0否');
$table->tinyInteger('p_id')->nullable()->default(0)->comment('父级节点');
$table->string('method')->nullable()->default('GET')->comment('请求方法');
$table->tinyInteger('status')->comment('状态 1正常;0禁用');
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('admin_permissions');
}
}
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/database/migrations/2022_08_04_232604_create_dings_table.php | database/migrations/2022_08_04_232604_create_dings_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDingsTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('dings', function (Blueprint $table): void {
$table->id();
$table->string('nick')->nullable();
$table->string('unionid')->nullable();
$table->string('openid')->nullable();
$table->string('ding_id')->nullable();
$table->integer('user_id')->default(0)->nullable();
$table->string('ding_user_id')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('dings');
}
}
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/database/migrations/2019_08_19_000000_create_failed_jobs_table.php | database/migrations/2019_08_19_000000_create_failed_jobs_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateFailedJobsTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('failed_jobs', function (Blueprint $table): void {
$table->id();
$table->text('connection');
$table->text('queue');
$table->longText('payload');
$table->longText('exception');
$table->timestamp('failed_at')->useCurrent();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('failed_jobs');
}
}
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/database/migrations/2021_03_22_112703_create_sessions_table.php | database/migrations/2021_03_22_112703_create_sessions_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSessionsTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('sessions', function (Blueprint $table): void {
$table->string('id')->unique();
$table->foreignId('user_id')->nullable();
$table->string('ip_address', 45)->nullable();
$table->text('user_agent')->nullable();
$table->text('payload');
$table->integer('last_activity');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('sessions');
}
}
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/database/migrations/2019_03_01_000000_create_rules_table.php | database/migrations/2019_03_01_000000_create_rules_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateRulesTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
$connection = config('lauthz.basic.database.connection') ?: config('database.default');
Schema::connection($connection)->create(config('lauthz.basic.database.rules_table'), function (Blueprint $table): void {
$table->increments('id');
$table->string('p_type')->nullable();
$table->string('v0')->nullable();
$table->string('v1')->nullable();
$table->string('v2')->nullable();
$table->string('v3')->nullable();
$table->string('v4')->nullable();
$table->string('v5')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
$connection = config('lauthz.basic.database.connection') ?: config('database.default');
Schema::connection($connection)->dropIfExists(config('lauthz.basic.database.rules_table'));
}
}
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/database/migrations/2022_08_04_232818_create_admin_roles_table.php | database/migrations/2022_08_04_232818_create_admin_roles_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAdminRolesTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('admin_roles', function (Blueprint $table): void {
$table->id();
$table->string('name')->nullable()->comment('角色名称');
$table->string('description')->nullable()->comment('描述');
$table->tinyInteger('status')->default(0)->comment('状态 0正常 1 禁用');
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('admin_roles');
}
}
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/lang/en/passwords.php | resources/lang/en/passwords.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/
'reset' => 'Your password has been reset!',
'sent' => 'We have emailed your password reset link!',
'throttled' => 'Please wait before retrying.',
'token' => 'This password reset token is invalid.',
'user' => "We can't find a user with that email address.",
];
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/lang/en/pagination.php | resources/lang/en/pagination.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/
'previous' => '« Previous',
'next' => 'Next »',
];
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/lang/en/validation.php | resources/lang/en/validation.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted' => 'The :attribute must be accepted.',
'active_url' => 'The :attribute is not a valid URL.',
'after' => 'The :attribute must be a date after :date.',
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
'alpha' => 'The :attribute may only contain letters.',
'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.',
'alpha_num' => 'The :attribute may only contain letters and numbers.',
'array' => 'The :attribute must be an array.',
'before' => 'The :attribute must be a date before :date.',
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
'between' => [
'numeric' => 'The :attribute must be between :min and :max.',
'file' => 'The :attribute must be between :min and :max kilobytes.',
'string' => 'The :attribute must be between :min and :max characters.',
'array' => 'The :attribute must have between :min and :max items.',
],
'boolean' => 'The :attribute field must be true or false.',
'confirmed' => 'The :attribute confirmation does not match.',
'date' => 'The :attribute is not a valid date.',
'date_equals' => 'The :attribute must be a date equal to :date.',
'date_format' => 'The :attribute does not match the format :format.',
'different' => 'The :attribute and :other must be different.',
'digits' => 'The :attribute must be :digits digits.',
'digits_between' => 'The :attribute must be between :min and :max digits.',
'dimensions' => 'The :attribute has invalid image dimensions.',
'distinct' => 'The :attribute field has a duplicate value.',
'email' => 'The :attribute must be a valid email address.',
'ends_with' => 'The :attribute must end with one of the following: :values.',
'exists' => 'The selected :attribute is invalid.',
'file' => 'The :attribute must be a file.',
'filled' => 'The :attribute field must have a value.',
'gt' => [
'numeric' => 'The :attribute must be greater than :value.',
'file' => 'The :attribute must be greater than :value kilobytes.',
'string' => 'The :attribute must be greater than :value characters.',
'array' => 'The :attribute must have more than :value items.',
],
'gte' => [
'numeric' => 'The :attribute must be greater than or equal :value.',
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
'string' => 'The :attribute must be greater than or equal :value characters.',
'array' => 'The :attribute must have :value items or more.',
],
'image' => 'The :attribute must be an image.',
'in' => 'The selected :attribute is invalid.',
'in_array' => 'The :attribute field does not exist in :other.',
'integer' => 'The :attribute must be an integer.',
'ip' => 'The :attribute must be a valid IP address.',
'ipv4' => 'The :attribute must be a valid IPv4 address.',
'ipv6' => 'The :attribute must be a valid IPv6 address.',
'json' => 'The :attribute must be a valid JSON string.',
'lt' => [
'numeric' => 'The :attribute must be less than :value.',
'file' => 'The :attribute must be less than :value kilobytes.',
'string' => 'The :attribute must be less than :value characters.',
'array' => 'The :attribute must have less than :value items.',
],
'lte' => [
'numeric' => 'The :attribute must be less than or equal :value.',
'file' => 'The :attribute must be less than or equal :value kilobytes.',
'string' => 'The :attribute must be less than or equal :value characters.',
'array' => 'The :attribute must not have more than :value items.',
],
'max' => [
'numeric' => 'The :attribute may not be greater than :max.',
'file' => 'The :attribute may not be greater than :max kilobytes.',
'string' => 'The :attribute may not be greater than :max characters.',
'array' => 'The :attribute may not have more than :max items.',
],
'mimes' => 'The :attribute must be a file of type: :values.',
'mimetypes' => 'The :attribute must be a file of type: :values.',
'min' => [
'numeric' => 'The :attribute must be at least :min.',
'file' => 'The :attribute must be at least :min kilobytes.',
'string' => 'The :attribute must be at least :min characters.',
'array' => 'The :attribute must have at least :min items.',
],
'not_in' => 'The selected :attribute is invalid.',
'not_regex' => 'The :attribute format is invalid.',
'numeric' => 'The :attribute must be a number.',
'password' => 'The password is incorrect.',
'present' => 'The :attribute field must be present.',
'regex' => 'The :attribute format is invalid.',
'required' => 'The :attribute field is required.',
'required_if' => 'The :attribute field is required when :other is :value.',
'required_unless' => 'The :attribute field is required unless :other is in :values.',
'required_with' => 'The :attribute field is required when :values is present.',
'required_with_all' => 'The :attribute field is required when :values are present.',
'required_without' => 'The :attribute field is required when :values is not present.',
'required_without_all' => 'The :attribute field is required when none of :values are present.',
'same' => 'The :attribute and :other must match.',
'size' => [
'numeric' => 'The :attribute must be :size.',
'file' => 'The :attribute must be :size kilobytes.',
'string' => 'The :attribute must be :size characters.',
'array' => 'The :attribute must contain :size items.',
],
'starts_with' => 'The :attribute must start with one of the following: :values.',
'string' => 'The :attribute must be a string.',
'timezone' => 'The :attribute must be a valid zone.',
'unique' => 'The :attribute has already been taken.',
'uploaded' => 'The :attribute failed to upload.',
'url' => 'The :attribute format is invalid.',
'uuid' => 'The :attribute must be a valid UUID.',
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap our attribute placeholder
| with something more reader friendly such as "E-Mail Address" instead
| of "email". This simply helps us make our message more expressive.
|
*/
'attributes' => [],
];
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/lang/en/auth.php | resources/lang/en/auth.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/
'failed' => 'These credentials do not match our records.',
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
];
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/welcome.blade.php | resources/views/welcome.blade.php | <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@200;600&display=swap" rel="stylesheet">
<!-- Styles -->
<style>
html, body {
background-color: #fff;
color: #636b6f;
font-family: 'Nunito', sans-serif;
font-weight: 200;
height: 100vh;
margin: 0;
}
.full-height {
height: 100vh;
}
.flex-center {
align-items: center;
display: flex;
justify-content: center;
}
.position-ref {
position: relative;
}
.top-right {
position: absolute;
right: 10px;
top: 18px;
}
.content {
text-align: center;
}
.title {
font-size: 84px;
}
.links > a {
color: #636b6f;
padding: 0 25px;
font-size: 13px;
font-weight: 600;
letter-spacing: .1rem;
text-decoration: none;
text-transform: uppercase;
}
.m-b-md {
margin-bottom: 30px;
}
</style>
</head>
<body>
<div class="flex-center position-ref full-height">
@if (Route::has('login'))
<div class="top-right links">
@auth
<a href="{{ url('/home') }}">Home</a>
@else
<a href="{{ route('login') }}">Login</a>
@if (Route::has('register'))
<a href="{{ route('register') }}">Register</a>
@endif
@endauth
</div>
@endif
<div class="content">
<div class="title m-b-md">
Laravel
</div>
<div class="links">
<a href="https://laravel.com/docs">Docs</a>
<a href="https://laracasts.com">Laracasts</a>
<a href="https://laravel-news.com">News</a>
<a href="https://blog.laravel.com">Blog</a>
<a href="https://nova.laravel.com">Nova</a>
<a href="https://forge.laravel.com">Forge</a>
<a href="https://vapor.laravel.com">Vapor</a>
<a href="https://github.com/laravel/laravel">GitHub</a>
</div>
</div>
</div>
</body>
</html>
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/code.blade.php | resources/views/code.blade.php | <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://g.alicdn.com/dingding/dinglogin/0.0.5/ddLogin.js"></script>
<title>钉钉授权登录二维码</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
<!-- Styles -->
<style>
</style>
</head>
<body>
<div class="flex-center position-ref full-height">
<div class="content">
<div class="title m-b-md" id="login" style="text-align: center">
</div>
</div>
</div>
</body>
<script>
/*
* 解释一下goto参数,参考以下例子:
* var url = encodeURIComponent('http://localhost.me/index.php?test=1&aa=2');
* var goto = encodeURIComponent('https://oapi.dingtalk.com/connect/oauth2/sns_authorize?appid=appid&response_type=code&scope=snsapi_login&state=STATE&redirect_uri='+url)
*/
var goto = '{!! urlencode('https://oapi.dingtalk.com/connect/oauth2/sns_authorize?appid=dingoa0yqggudy87gc9alo&response_type=code&scope=snsapi_login&state=STATE&redirect_uri='.$redirect_uri) !!}';
var obj = DDLogin({
id:"login",//这里需要你在自己的页面定义一个HTML标签并设置id,例如<div id="login_container"></div>或<span id="login_container"></span>
goto: goto, //请参考注释里的方式
style: "border:none;background-color:#FFFFFF;",
width : "365",
height: "400"
});
var handleMessage = function (event) {
var origin = event.origin;
console.log("origin", event.origin);
if( origin == "https://login.dingtalk.com" ) { //判断是否来自ddLogin扫码事件。
var loginTmpCode = event.data;
//获取到loginTmpCode后就可以在这里构造跳转链接进行跳转了
console.log("loginTmpCode", loginTmpCode);
var appid = '{!! env('DT_AUTH_APPID') !!}'
var redirect_uri = '{!! $redirect_uri !!}';
var url = `https://oapi.dingtalk.com/connect/oauth2/sns_authorize?appid=${appid}&response_type=code&scope=snsapi_login&state=STATE&redirect_uri=${redirect_uri}&loginTmpCode=${loginTmpCode}`;
window.parent.location.href = url;
}
};
if (typeof window.addEventListener != 'undefined') {
window.addEventListener('message', handleMessage, false);
} else if (typeof window.attachEvent != 'undefined') {
window.attachEvent('onmessage', handleMessage);
}
</script>
</html>
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/loading.blade.php | resources/views/loading.blade.php | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>laravel-casbin-admin {{$app_name}} 授权登录中....</title>
</head>
<body>
<div style="text-align: center;margin: 100px auto;height: 500px;width: 400px">授权登陆中...</div>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script><script>
window.onload = function () {
//窗口通信函数api 将token发送给前一个页面 文档说明地址 https://developer.mozilla.org/zh-CN/docs/Web/API/Window/postMessage
window.opener.postMessage("{{ $token }}", "{{ $domain }}");
window.close();
}
</script>
</body>
</html>
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/l5-swagger/index.blade.php | resources/views/vendor/l5-swagger/index.blade.php | <!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{config('l5-swagger.documentations.'.$documentation.'.api.title')}}</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="{{ l5_swagger_asset($documentation, 'swagger-ui.css') }}" >
<link rel="icon" type="image/png" href="{{ l5_swagger_asset($documentation, 'favicon-32x32.png') }}" sizes="32x32" />
<link rel="icon" type="image/png" href="{{ l5_swagger_asset($documentation, 'favicon-16x16.png') }}" sizes="16x16" />
<style>
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}
*,
*:before,
*:after
{
box-sizing: inherit;
}
body {
margin:0;
background: #fafafa;
}
</style>
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0">
<defs>
<symbol viewBox="0 0 20 20" id="unlocked">
<path d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"></path>
</symbol>
<symbol viewBox="0 0 20 20" id="locked">
<path d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"/>
</symbol>
<symbol viewBox="0 0 20 20" id="close">
<path d="M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"/>
</symbol>
<symbol viewBox="0 0 20 20" id="large-arrow">
<path d="M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"/>
</symbol>
<symbol viewBox="0 0 20 20" id="large-arrow-down">
<path d="M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"/>
</symbol>
<symbol viewBox="0 0 24 24" id="jump-to">
<path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"/>
</symbol>
<symbol viewBox="0 0 24 24" id="expand">
<path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/>
</symbol>
</defs>
</svg>
<div id="swagger-ui"></div>
<script src="{{ l5_swagger_asset($documentation, 'swagger-ui-bundle.js') }}"> </script>
<script src="{{ l5_swagger_asset($documentation, 'swagger-ui-standalone-preset.js') }}"> </script>
<script>
window.onload = function() {
// Build a system
const ui = SwaggerUIBundle({
dom_id: '#swagger-ui',
url: "{!! $urlToDocs !!}",
operationsSorter: {!! isset($operationsSorter) ? '"' . $operationsSorter . '"' : 'null' !!},
configUrl: {!! isset($configUrl) ? '"' . $configUrl . '"' : 'null' !!},
validatorUrl: {!! isset($validatorUrl) ? '"' . $validatorUrl . '"' : 'null' !!},
oauth2RedirectUrl: "{{ route('l5-swagger.'.$documentation.'.oauth2_callback') }}",
requestInterceptor: function(request) {
request.headers['X-CSRF-TOKEN'] = '{{ csrf_token() }}';
return request;
},
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})
window.ui = ui
}
</script>
</body>
</html>
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/html/table.blade.php | resources/views/vendor/mail/html/table.blade.php | <div class="table">
{{ Illuminate\Mail\Markdown::parse($slot) }}
</div>
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/html/layout.blade.php | resources/views/vendor/mail/html/layout.blade.php | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<style>
@media only screen and (max-width: 600px) {
.inner-body {
width: 100% !important;
}
.footer {
width: 100% !important;
}
}
@media only screen and (max-width: 500px) {
.button {
width: 100% !important;
}
}
</style>
<table class="wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td align="center">
<table class="content" width="100%" cellpadding="0" cellspacing="0" role="presentation">
{{ $header ?? '' }}
<!-- Email Body -->
<tr>
<td class="body" width="100%" cellpadding="0" cellspacing="0">
<table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
<!-- Body content -->
<tr>
<td class="content-cell">
{{ Illuminate\Mail\Markdown::parse($slot) }}
{{ $subcopy ?? '' }}
</td>
</tr>
</table>
</td>
</tr>
{{ $footer ?? '' }}
</table>
</td>
</tr>
</table>
</body>
</html>
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/html/message.blade.php | resources/views/vendor/mail/html/message.blade.php | @component('mail::layout')
{{-- Header --}}
@slot('header')
@component('mail::header', ['url' => config('app.url')])
{{ config('app.name') }}
@endcomponent
@endslot
{{-- Body --}}
{{ $slot }}
{{-- Subcopy --}}
@isset($subcopy)
@slot('subcopy')
@component('mail::subcopy')
{{ $subcopy }}
@endcomponent
@endslot
@endisset
{{-- Footer --}}
@slot('footer')
@component('mail::footer')
© {{ date('Y') }} {{ config('app.name') }}. @lang('All rights reserved.')
@endcomponent
@endslot
@endcomponent
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/html/subcopy.blade.php | resources/views/vendor/mail/html/subcopy.blade.php | <table class="subcopy" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td>
{{ Illuminate\Mail\Markdown::parse($slot) }}
</td>
</tr>
</table>
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/html/panel.blade.php | resources/views/vendor/mail/html/panel.blade.php | <table class="panel" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td class="panel-content">
<table width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td class="panel-item">
{{ Illuminate\Mail\Markdown::parse($slot) }}
</td>
</tr>
</table>
</td>
</tr>
</table>
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/html/button.blade.php | resources/views/vendor/mail/html/button.blade.php | <table class="action" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td>
<a href="{{ $url }}" class="button button-{{ $color ?? 'primary' }}" target="_blank" rel="noopener">{{ $slot }}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/html/header.blade.php | resources/views/vendor/mail/html/header.blade.php | <tr>
<td class="header">
<a href="{{ $url }}" style="display: inline-block;">
@if (trim($slot) === 'Laravel')
<img src="https://laravel.com/img/notification-logo.png" class="logo" alt="Laravel Logo">
@else
{{ $slot }}
@endif
</a>
</td>
</tr>
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/html/footer.blade.php | resources/views/vendor/mail/html/footer.blade.php | <tr>
<td>
<table class="footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td class="content-cell" align="center">
{{ Illuminate\Mail\Markdown::parse($slot) }}
</td>
</tr>
</table>
</td>
</tr>
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/text/table.blade.php | resources/views/vendor/mail/text/table.blade.php | {{ $slot }}
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/text/layout.blade.php | resources/views/vendor/mail/text/layout.blade.php | {!! strip_tags($header) !!}
{!! strip_tags($slot) !!}
@isset($subcopy)
{!! strip_tags($subcopy) !!}
@endisset
{!! strip_tags($footer) !!}
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/text/message.blade.php | resources/views/vendor/mail/text/message.blade.php | @component('mail::layout')
{{-- Header --}}
@slot('header')
@component('mail::header', ['url' => config('app.url')])
{{ config('app.name') }}
@endcomponent
@endslot
{{-- Body --}}
{{ $slot }}
{{-- Subcopy --}}
@isset($subcopy)
@slot('subcopy')
@component('mail::subcopy')
{{ $subcopy }}
@endcomponent
@endslot
@endisset
{{-- Footer --}}
@slot('footer')
@component('mail::footer')
© {{ date('Y') }} {{ config('app.name') }}. @lang('All rights reserved.')
@endcomponent
@endslot
@endcomponent
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/text/subcopy.blade.php | resources/views/vendor/mail/text/subcopy.blade.php | {{ $slot }}
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/text/panel.blade.php | resources/views/vendor/mail/text/panel.blade.php | {{ $slot }}
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/text/button.blade.php | resources/views/vendor/mail/text/button.blade.php | {{ $slot }}: {{ $url }}
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/text/header.blade.php | resources/views/vendor/mail/text/header.blade.php | [{{ $slot }}]({{ $url }})
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/mail/text/footer.blade.php | resources/views/vendor/mail/text/footer.blade.php | {{ $slot }}
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/pagination/tailwind.blade.php | resources/views/vendor/pagination/tailwind.blade.php | @if ($paginator->hasPages())
<nav role="navigation" aria-label="Pagination Navigation" class="flex items-center justify-between">
<div class="flex justify-between flex-1 sm:hidden">
@if ($paginator->onFirstPage())
<span class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
{!! __('pagination.previous') !!}
</span>
@else
<a href="{{ $paginator->previousPageUrl() }}" class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
{!! __('pagination.previous') !!}
</a>
@endif
@if ($paginator->hasMorePages())
<a href="{{ $paginator->nextPageUrl() }}" class="relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
{!! __('pagination.next') !!}
</a>
@else
<span class="relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
{!! __('pagination.next') !!}
</span>
@endif
</div>
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
<div>
<p class="text-sm text-gray-700 leading-5">
{!! __('Showing') !!}
<span class="font-medium">{{ $paginator->firstItem() }}</span>
{!! __('to') !!}
<span class="font-medium">{{ $paginator->lastItem() }}</span>
{!! __('of') !!}
<span class="font-medium">{{ $paginator->total() }}</span>
{!! __('results') !!}
</p>
</div>
<div>
<span class="relative z-0 inline-flex shadow-sm">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<span aria-disabled="true" aria-label="{{ __('pagination.previous') }}">
<span class="relative inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default rounded-l-md leading-5" aria-hidden="true">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
</svg>
</span>
</span>
@else
<a href="{{ $paginator->previousPageUrl() }}" rel="prev" class="relative inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-l-md leading-5 hover:text-gray-400 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150" aria-label="{{ __('pagination.previous') }}">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
</svg>
</a>
@endif
{{-- Pagination Elements --}}
@foreach ($elements as $element)
{{-- "Three Dots" Separator --}}
@if (is_string($element))
<span aria-disabled="true">
<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 cursor-default leading-5">{{ $element }}</span>
</span>
@endif
{{-- Array Of Links --}}
@if (is_array($element))
@foreach ($element as $page => $url)
@if ($page == $paginator->currentPage())
<span aria-current="page">
<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">{{ $page }}</span>
</span>
@else
<a href="{{ $url }}" class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 hover:text-gray-500 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150" aria-label="{{ __('Go to page :page', ['page' => $page]) }}">
{{ $page }}
</a>
@endif
@endforeach
@endif
@endforeach
{{-- Next Page Link --}}
@if ($paginator->hasMorePages())
<a href="{{ $paginator->nextPageUrl() }}" rel="next" class="relative inline-flex items-center px-2 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-r-md leading-5 hover:text-gray-400 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150" aria-label="{{ __('pagination.next') }}">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
</svg>
</a>
@else
<span aria-disabled="true" aria-label="{{ __('pagination.next') }}">
<span class="relative inline-flex items-center px-2 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default rounded-r-md leading-5" aria-hidden="true">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
</svg>
</span>
</span>
@endif
</span>
</div>
</div>
</nav>
@endif
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/pagination/simple-default.blade.php | resources/views/vendor/pagination/simple-default.blade.php | @if ($paginator->hasPages())
<nav>
<ul class="pagination">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<li class="disabled" aria-disabled="true"><span>@lang('pagination.previous')</span></li>
@else
<li><a href="{{ $paginator->previousPageUrl() }}" rel="prev">@lang('pagination.previous')</a></li>
@endif
{{-- Next Page Link --}}
@if ($paginator->hasMorePages())
<li><a href="{{ $paginator->nextPageUrl() }}" rel="next">@lang('pagination.next')</a></li>
@else
<li class="disabled" aria-disabled="true"><span>@lang('pagination.next')</span></li>
@endif
</ul>
</nav>
@endif
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/pagination/default.blade.php | resources/views/vendor/pagination/default.blade.php | @if ($paginator->hasPages())
<nav>
<ul class="pagination">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<li class="disabled" aria-disabled="true" aria-label="@lang('pagination.previous')">
<span aria-hidden="true">‹</span>
</li>
@else
<li>
<a href="{{ $paginator->previousPageUrl() }}" rel="prev" aria-label="@lang('pagination.previous')">‹</a>
</li>
@endif
{{-- Pagination Elements --}}
@foreach ($elements as $element)
{{-- "Three Dots" Separator --}}
@if (is_string($element))
<li class="disabled" aria-disabled="true"><span>{{ $element }}</span></li>
@endif
{{-- Array Of Links --}}
@if (is_array($element))
@foreach ($element as $page => $url)
@if ($page == $paginator->currentPage())
<li class="active" aria-current="page"><span>{{ $page }}</span></li>
@else
<li><a href="{{ $url }}">{{ $page }}</a></li>
@endif
@endforeach
@endif
@endforeach
{{-- Next Page Link --}}
@if ($paginator->hasMorePages())
<li>
<a href="{{ $paginator->nextPageUrl() }}" rel="next" aria-label="@lang('pagination.next')">›</a>
</li>
@else
<li class="disabled" aria-disabled="true" aria-label="@lang('pagination.next')">
<span aria-hidden="true">›</span>
</li>
@endif
</ul>
</nav>
@endif
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/pagination/bootstrap-4.blade.php | resources/views/vendor/pagination/bootstrap-4.blade.php | @if ($paginator->hasPages())
<nav>
<ul class="pagination">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<li class="page-item disabled" aria-disabled="true" aria-label="@lang('pagination.previous')">
<span class="page-link" aria-hidden="true">‹</span>
</li>
@else
<li class="page-item">
<a class="page-link" href="{{ $paginator->previousPageUrl() }}" rel="prev" aria-label="@lang('pagination.previous')">‹</a>
</li>
@endif
{{-- Pagination Elements --}}
@foreach ($elements as $element)
{{-- "Three Dots" Separator --}}
@if (is_string($element))
<li class="page-item disabled" aria-disabled="true"><span class="page-link">{{ $element }}</span></li>
@endif
{{-- Array Of Links --}}
@if (is_array($element))
@foreach ($element as $page => $url)
@if ($page == $paginator->currentPage())
<li class="page-item active" aria-current="page"><span class="page-link">{{ $page }}</span></li>
@else
<li class="page-item"><a class="page-link" href="{{ $url }}">{{ $page }}</a></li>
@endif
@endforeach
@endif
@endforeach
{{-- Next Page Link --}}
@if ($paginator->hasMorePages())
<li class="page-item">
<a class="page-link" href="{{ $paginator->nextPageUrl() }}" rel="next" aria-label="@lang('pagination.next')">›</a>
</li>
@else
<li class="page-item disabled" aria-disabled="true" aria-label="@lang('pagination.next')">
<span class="page-link" aria-hidden="true">›</span>
</li>
@endif
</ul>
</nav>
@endif
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/pagination/simple-bootstrap-4.blade.php | resources/views/vendor/pagination/simple-bootstrap-4.blade.php | @if ($paginator->hasPages())
<nav>
<ul class="pagination">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<li class="page-item disabled" aria-disabled="true">
<span class="page-link">@lang('pagination.previous')</span>
</li>
@else
<li class="page-item">
<a class="page-link" href="{{ $paginator->previousPageUrl() }}" rel="prev">@lang('pagination.previous')</a>
</li>
@endif
{{-- Next Page Link --}}
@if ($paginator->hasMorePages())
<li class="page-item">
<a class="page-link" href="{{ $paginator->nextPageUrl() }}" rel="next">@lang('pagination.next')</a>
</li>
@else
<li class="page-item disabled" aria-disabled="true">
<span class="page-link">@lang('pagination.next')</span>
</li>
@endif
</ul>
</nav>
@endif
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/pagination/semantic-ui.blade.php | resources/views/vendor/pagination/semantic-ui.blade.php | @if ($paginator->hasPages())
<div class="ui pagination menu" role="navigation">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<a class="icon item disabled" aria-disabled="true" aria-label="@lang('pagination.previous')"> <i class="left chevron icon"></i> </a>
@else
<a class="icon item" href="{{ $paginator->previousPageUrl() }}" rel="prev" aria-label="@lang('pagination.previous')"> <i class="left chevron icon"></i> </a>
@endif
{{-- Pagination Elements --}}
@foreach ($elements as $element)
{{-- "Three Dots" Separator --}}
@if (is_string($element))
<a class="icon item disabled" aria-disabled="true">{{ $element }}</a>
@endif
{{-- Array Of Links --}}
@if (is_array($element))
@foreach ($element as $page => $url)
@if ($page == $paginator->currentPage())
<a class="item active" href="{{ $url }}" aria-current="page">{{ $page }}</a>
@else
<a class="item" href="{{ $url }}">{{ $page }}</a>
@endif
@endforeach
@endif
@endforeach
{{-- Next Page Link --}}
@if ($paginator->hasMorePages())
<a class="icon item" href="{{ $paginator->nextPageUrl() }}" rel="next" aria-label="@lang('pagination.next')"> <i class="right chevron icon"></i> </a>
@else
<a class="icon item disabled" aria-disabled="true" aria-label="@lang('pagination.next')"> <i class="right chevron icon"></i> </a>
@endif
</div>
@endif
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/pagination/simple-tailwind.blade.php | resources/views/vendor/pagination/simple-tailwind.blade.php | @if ($paginator->hasPages())
<nav role="navigation" aria-label="Pagination Navigation" class="flex justify-between">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<span class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
{!! __('pagination.previous') !!}
</span>
@else
<a href="{{ $paginator->previousPageUrl() }}" rel="prev" class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
{!! __('pagination.previous') !!}
</a>
@endif
{{-- Next Page Link --}}
@if ($paginator->hasMorePages())
<a href="{{ $paginator->nextPageUrl() }}" rel="next" class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
{!! __('pagination.next') !!}
</a>
@else
<span class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
{!! __('pagination.next') !!}
</span>
@endif
</nav>
@endif
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/vendor/notifications/email.blade.php | resources/views/vendor/notifications/email.blade.php | @component('mail::message')
{{-- Greeting --}}
@if (! empty($greeting))
# {{ $greeting }}
@else
@if ($level === 'error')
# @lang('Whoops!')
@else
# @lang('Hello!')
@endif
@endif
{{-- Intro Lines --}}
@foreach ($introLines as $line)
{{ $line }}
@endforeach
{{-- Action Button --}}
@isset($actionText)
<?php
switch ($level) {
case 'success':
case 'error':
$color = $level;
break;
default:
$color = 'primary';
}
?>
@component('mail::button', ['url' => $actionUrl, 'color' => $color])
{{ $actionText }}
@endcomponent
@endisset
{{-- Outro Lines --}}
@foreach ($outroLines as $line)
{{ $line }}
@endforeach
{{-- Salutation --}}
@if (! empty($salutation))
{{ $salutation }}
@else
@lang('Regards'),<br>
{{ config('app.name') }}
@endif
{{-- Subcopy --}}
@isset($actionText)
@slot('subcopy')
@lang(
"If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\n".
'into your web browser:',
[
'actionText' => $actionText,
]
) <span class="break-all">[{{ $displayableActionUrl }}]({{ $actionUrl }})</span>
@endslot
@endisset
@endcomponent
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/errors/layout.blade.php | resources/views/errors/layout.blade.php | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>@yield('title')</title>
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css">
<!-- Styles -->
<style>
html, body {
background-color: #fff;
color: #636b6f;
font-family: 'Nunito', sans-serif;
font-weight: 100;
height: 100vh;
margin: 0;
}
.full-height {
height: 100vh;
}
.flex-center {
align-items: center;
display: flex;
justify-content: center;
}
.position-ref {
position: relative;
}
.content {
text-align: center;
}
.title {
font-size: 36px;
padding: 20px;
}
</style>
</head>
<body>
<div class="flex-center position-ref full-height">
<div class="content">
<div class="title">
@yield('message')
</div>
</div>
</div>
</body>
</html>
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/errors/500.blade.php | resources/views/errors/500.blade.php | @extends('errors::minimal')
@section('title', __('Server Error'))
@section('code', '500')
@section('message', __('Server Error'))
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/errors/503.blade.php | resources/views/errors/503.blade.php | @extends('errors::minimal')
@section('title', __('Service Unavailable'))
@section('code', '503')
@section('message', __($exception->getMessage() ?: 'Service Unavailable'))
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/errors/429.blade.php | resources/views/errors/429.blade.php | @extends('errors::minimal')
@section('title', __('Too Many Requests'))
@section('code', '429')
@section('message', __('Too Many Requests'))
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/errors/illustrated-layout.blade.php | resources/views/errors/illustrated-layout.blade.php | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>@yield('title')</title>
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<!-- Styles -->
<style>
html {
line-height: 1.15;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
}
header,
nav,
section {
display: block;
}
figcaption,
main {
display: block;
}
a {
background-color: transparent;
-webkit-text-decoration-skip: objects;
}
strong {
font-weight: inherit;
}
strong {
font-weight: bolder;
}
code {
font-family: monospace, monospace;
font-size: 1em;
}
dfn {
font-style: italic;
}
svg:not(:root) {
overflow: hidden;
}
button,
input {
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
button,
input {
overflow: visible;
}
button {
text-transform: none;
}
button,
html [type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
legend {
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
[type="checkbox"],
[type="radio"] {
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
menu {
display: block;
}
canvas {
display: inline-block;
}
template {
display: none;
}
[hidden] {
display: none;
}
html {
-webkit-box-sizing: border-box;
box-sizing: border-box;
font-family: sans-serif;
}
*,
*::before,
*::after {
-webkit-box-sizing: inherit;
box-sizing: inherit;
}
p {
margin: 0;
}
button {
background: transparent;
padding: 0;
}
button:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
*,
*::before,
*::after {
border-width: 0;
border-style: solid;
border-color: #dae1e7;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
border-radius: 0;
}
button,
input {
font-family: inherit;
}
input::-webkit-input-placeholder {
color: inherit;
opacity: .5;
}
input:-ms-input-placeholder {
color: inherit;
opacity: .5;
}
input::-ms-input-placeholder {
color: inherit;
opacity: .5;
}
input::placeholder {
color: inherit;
opacity: .5;
}
button,
[role=button] {
cursor: pointer;
}
.bg-transparent {
background-color: transparent;
}
.bg-white {
background-color: #fff;
}
.bg-teal-light {
background-color: #64d5ca;
}
.bg-blue-dark {
background-color: #2779bd;
}
.bg-indigo-light {
background-color: #7886d7;
}
.bg-purple-light {
background-color: #a779e9;
}
.bg-no-repeat {
background-repeat: no-repeat;
}
.bg-cover {
background-size: cover;
}
.border-grey-light {
border-color: #dae1e7;
}
.hover\:border-grey:hover {
border-color: #b8c2cc;
}
.rounded-lg {
border-radius: .5rem;
}
.border-2 {
border-width: 2px;
}
.hidden {
display: none;
}
.flex {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.items-center {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.justify-center {
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
.font-sans {
font-family: Nunito, sans-serif;
}
.font-light {
font-weight: 300;
}
.font-bold {
font-weight: 700;
}
.font-black {
font-weight: 900;
}
.h-1 {
height: .25rem;
}
.leading-normal {
line-height: 1.5;
}
.m-8 {
margin: 2rem;
}
.my-3 {
margin-top: .75rem;
margin-bottom: .75rem;
}
.mb-8 {
margin-bottom: 2rem;
}
.max-w-sm {
max-width: 30rem;
}
.min-h-screen {
min-height: 100vh;
}
.py-3 {
padding-top: .75rem;
padding-bottom: .75rem;
}
.px-6 {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
.pb-full {
padding-bottom: 100%;
}
.absolute {
position: absolute;
}
.relative {
position: relative;
}
.pin {
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.text-black {
color: #22292f;
}
.text-grey-darkest {
color: #3d4852;
}
.text-grey-darker {
color: #606f7b;
}
.text-2xl {
font-size: 1.5rem;
}
.text-5xl {
font-size: 3rem;
}
.uppercase {
text-transform: uppercase;
}
.antialiased {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.tracking-wide {
letter-spacing: .05em;
}
.w-16 {
width: 4rem;
}
.w-full {
width: 100%;
}
@media (min-width: 768px) {
.md\:bg-left {
background-position: left;
}
.md\:bg-right {
background-position: right;
}
.md\:flex {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.md\:my-6 {
margin-top: 1.5rem;
margin-bottom: 1.5rem;
}
.md\:min-h-screen {
min-height: 100vh;
}
.md\:pb-0 {
padding-bottom: 0;
}
.md\:text-3xl {
font-size: 1.875rem;
}
.md\:text-15xl {
font-size: 9rem;
}
.md\:w-1\/2 {
width: 50%;
}
}
@media (min-width: 992px) {
.lg\:bg-center {
background-position: center;
}
}
</style>
</head>
<body class="antialiased font-sans">
<div class="md:flex min-h-screen">
<div class="w-full md:w-1/2 bg-white flex items-center justify-center">
<div class="max-w-sm m-8">
<div class="text-black text-5xl md:text-15xl font-black">
@yield('code', __('Oh no'))
</div>
<div class="w-16 h-1 bg-purple-light my-3 md:my-6"></div>
<p class="text-grey-darker text-2xl md:text-3xl font-light mb-8 leading-normal">
@yield('message')
</p>
<a href="{{ app('router')->has('home') ? route('home') : url('/') }}">
<button class="bg-transparent text-grey-darkest font-bold uppercase tracking-wide py-3 px-6 border-2 border-grey-light hover:border-grey rounded-lg">
{{ __('Go Home') }}
</button>
</a>
</div>
</div>
<div class="relative pb-full md:flex md:pb-0 md:min-h-screen w-full md:w-1/2">
@yield('image')
</div>
</div>
</body>
</html>
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/errors/403.blade.php | resources/views/errors/403.blade.php | @extends('errors::minimal')
@section('title', __('Forbidden'))
@section('code', '403')
@section('message', __($exception->getMessage() ?: 'Forbidden'))
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/errors/401.blade.php | resources/views/errors/401.blade.php | @extends('errors::minimal')
@section('title', __('Unauthorized'))
@section('code', '401')
@section('message', __('Unauthorized'))
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/errors/minimal.blade.php | resources/views/errors/minimal.blade.php | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>@yield('title')</title>
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<!-- Styles -->
<style>
html, body {
background-color: #fff;
color: #636b6f;
font-family: 'Nunito', sans-serif;
font-weight: 100;
height: 100vh;
margin: 0;
}
.full-height {
height: 100vh;
}
.flex-center {
align-items: center;
display: flex;
justify-content: center;
}
.position-ref {
position: relative;
}
.code {
border-right: 2px solid;
font-size: 26px;
padding: 0 15px 0 15px;
text-align: center;
}
.message {
font-size: 18px;
text-align: center;
}
</style>
</head>
<body>
<div class="flex-center position-ref full-height">
<div class="code">
@yield('code')
</div>
<div class="message" style="padding: 10px;">
@yield('message')
</div>
</div>
</body>
</html>
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/errors/404.blade.php | resources/views/errors/404.blade.php | @extends('errors::minimal')
@section('title', __('Not Found'))
@section('code', '404')
@section('message', __('Not Found'))
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
pl1998/laravel-casbin-admin | https://github.com/pl1998/laravel-casbin-admin/blob/89d76be465237122e88f073d0a0a6519aaf3bd89/resources/views/errors/419.blade.php | resources/views/errors/419.blade.php | @extends('errors::minimal')
@section('title', __('Page Expired'))
@section('code', '419')
@section('message', __('Page Expired'))
| php | Apache-2.0 | 89d76be465237122e88f073d0a0a6519aaf3bd89 | 2026-01-05T05:04:44.676586Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/check_coverage.php | check_coverage.php | #!/usr/bin/env php
<?php
$coverage = new DomDocument();
$coverage->loadHTMLFile('coverage/index.html', LIBXML_NOERROR);
$xpath = new DOMXpath($coverage);
$percentage = $xpath->query('/html/body/div/div/table/tbody/tr[1]/td[3]/div')->item(0);
echo "Code coverage: {$percentage->nodeValue}\n";
if($percentage->nodeValue !== '100.00%') {
exit(1);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/RepositoryTrait.php | src/ProcessMaker/Nayra/RepositoryTrait.php | <?php
namespace ProcessMaker\Nayra;
use InvalidArgumentException;
use ProcessMaker\Nayra\Bpmn\Assignment;
use ProcessMaker\Nayra\Bpmn\DataInputAssociation;
use ProcessMaker\Nayra\Bpmn\DataOutputAssociation;
use ProcessMaker\Nayra\Bpmn\Lane;
use ProcessMaker\Nayra\Bpmn\LaneSet;
use ProcessMaker\Nayra\Bpmn\Models\Activity;
use ProcessMaker\Nayra\Bpmn\Models\BoundaryEvent;
use ProcessMaker\Nayra\Bpmn\Models\Collaboration;
use ProcessMaker\Nayra\Bpmn\Models\ConditionalEventDefinition;
use ProcessMaker\Nayra\Bpmn\Models\DataInput;
use ProcessMaker\Nayra\Bpmn\Models\DataOutput;
use ProcessMaker\Nayra\Bpmn\Models\DataStore;
use ProcessMaker\Nayra\Bpmn\Models\EndEvent;
use ProcessMaker\Nayra\Bpmn\Models\Error;
use ProcessMaker\Nayra\Bpmn\Models\ErrorEventDefinition;
use ProcessMaker\Nayra\Bpmn\Models\EventBasedGateway;
use ProcessMaker\Nayra\Bpmn\Models\ExclusiveGateway;
use ProcessMaker\Nayra\Bpmn\Models\Flow;
use ProcessMaker\Nayra\Bpmn\Models\InclusiveGateway;
use ProcessMaker\Nayra\Bpmn\Models\InputOutputSpecification;
use ProcessMaker\Nayra\Bpmn\Models\InputSet;
use ProcessMaker\Nayra\Bpmn\Models\IntermediateCatchEvent;
use ProcessMaker\Nayra\Bpmn\Models\IntermediateThrowEvent;
use ProcessMaker\Nayra\Bpmn\Models\ItemDefinition;
use ProcessMaker\Nayra\Bpmn\Models\Message;
use ProcessMaker\Nayra\Bpmn\Models\MessageEventDefinition;
use ProcessMaker\Nayra\Bpmn\Models\MessageFlow;
use ProcessMaker\Nayra\Bpmn\Models\MultiInstanceLoopCharacteristics;
use ProcessMaker\Nayra\Bpmn\Models\Operation;
use ProcessMaker\Nayra\Bpmn\Models\OutputSet;
use ProcessMaker\Nayra\Bpmn\Models\ParallelGateway;
use ProcessMaker\Nayra\Bpmn\Models\Participant;
use ProcessMaker\Nayra\Bpmn\Models\Process;
use ProcessMaker\Nayra\Bpmn\Models\ScriptTask;
use ProcessMaker\Nayra\Bpmn\Models\ServiceTask;
use ProcessMaker\Nayra\Bpmn\Models\Signal;
use ProcessMaker\Nayra\Bpmn\Models\SignalEventDefinition;
use ProcessMaker\Nayra\Bpmn\Models\StandardLoopCharacteristics;
use ProcessMaker\Nayra\Bpmn\Models\StartEvent;
use ProcessMaker\Nayra\Bpmn\Models\TerminateEventDefinition;
use ProcessMaker\Nayra\Bpmn\Models\TimerEventDefinition;
use ProcessMaker\Nayra\Bpmn\State;
use ProcessMaker\Nayra\Contracts\Bpmn\FlowNodeInterface;
use ProcessMaker\Test\Models\TokenRepository;
/**
* Class that create instances of classes based on the mappings interface-concrete class passed to it.
*/
trait RepositoryTrait
{
private $tokenRepo = null;
/**
* Creates an instance of the interface passed
*
* @param string $interfaceName Fully qualified name of the interface
* @param array ...$constructorArguments arguments of class' constructor
*
* @return mixed
*/
public function create($interfaceName, ...$constructorArguments)
{
$interfaceParts = explode('\\', $interfaceName);
$name = array_pop($interfaceParts);
$method = 'create' . substr($name, 0, -9);
if (!method_exists($this, $method)) {
throw new InvalidArgumentException("Can't find $method to instantiate '$interfaceName'");
}
return $this->$method(...$constructorArguments);
}
/**
* Create instance of Activity.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface
*/
public function createActivity()
{
return new Activity();
}
/**
* Create instance of Collaboration.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\CollaborationInterface
*/
public function createCollaboration()
{
return new Collaboration();
}
/**
* Create instance of ConditionalEventDefinition.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ConditionalEventDefinitionInterface
*/
public function createConditionalEventDefinition()
{
return new ConditionalEventDefinition();
}
/**
* Create instance of DataInput.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\DataInputInterface
*/
public function createDataInput()
{
return new DataInput();
}
/**
* Create instance of DataOutput.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\DataOutputInterface
*/
public function createDataOutput()
{
return new DataOutput();
}
/**
* Create instance of DataStore.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\DataStoreInterface
*/
public function createDataStore()
{
return new DataStore();
}
/**
* Create instance of EndEvent.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface
*/
public function createEndEvent()
{
return new EndEvent();
}
/**
* Create instance of ErrorEventDefinition.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ErrorEventDefinitionInterface
*/
public function createErrorEventDefinition()
{
return new ErrorEventDefinition();
}
/**
* Create instance of Error.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ErrorInterface
*/
public function createError()
{
return new Error();
}
/**
* Create instance of EventBasedGateway.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\EventBasedGatewayInterface
*/
public function createEventBasedGateway()
{
return new EventBasedGateway();
}
/**
* Create instance of ExclusiveGateway.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ExclusiveGatewayInterface
*/
public function createExclusiveGateway()
{
return new ExclusiveGateway();
}
/**
* Create instance of Flow.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\FlowInterface
*/
public function createFlow()
{
return new Flow();
}
/**
* Create instance of InclusiveGateway.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\InclusiveGatewayInterface
*/
public function createInclusiveGateway()
{
return new InclusiveGateway();
}
/**
* Create instance of InputSet.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\InputSetInterface
*/
public function createInputSet()
{
return new InputSet();
}
/**
* Create instance of IntermediateCatchEvent.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\IntermediateCatchEventInterface
*/
public function createIntermediateCatchEvent()
{
return new IntermediateCatchEvent();
}
/**
* Create instance of IntermediateThrowEvent.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\IntermediateThrowEventInterface
*/
public function createIntermediateThrowEvent()
{
return new IntermediateThrowEvent();
}
/**
* Create instance of ItemDefinition.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ItemDefinitionInterface
*/
public function createItemDefinition()
{
return new ItemDefinition();
}
/**
* Create instance of Lane.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\LaneInterface
*/
public function createLane()
{
return new Lane();
}
/**
* Create instance of LaneSet.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\LaneSetInterface
*/
public function createLaneSet()
{
return new LaneSet();
}
/**
* Create instance of MessageEventDefinition.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\MessageEventDefinitionInterface
*/
public function createMessageEventDefinition()
{
return new MessageEventDefinition();
}
/**
* Create instance of MessageFlow.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\MessageFlowInterface
*/
public function createMessageFlow()
{
return new MessageFlow();
}
/**
* Create instance of Message.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\MessageInterface
*/
public function createMessage()
{
return new Message();
}
/**
* Create instance of Operation.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\OperationInterface
*/
public function createOperation()
{
return new Operation();
}
/**
* Create instance of OutputSet.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\OutputSetInterface
*/
public function createOutputSet()
{
return new OutputSet();
}
/**
* Create instance of ParallelGateway.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ParallelGatewayInterface
*/
public function createParallelGateway()
{
return new ParallelGateway();
}
/**
* Create instance of Participant.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ParticipantInterface
*/
public function createParticipant()
{
return new Participant();
}
/**
* Create instance of Process.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface
*/
public function createProcess()
{
$process = new Process();
$process->setRepository($this);
return $process;
}
/**
* Create instance of ScriptTask.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ScriptTaskInterface
*/
public function createScriptTask()
{
return new ScriptTask();
}
/**
* Create instance of ServiceTask.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ServiceTaskInterface
*/
public function createServiceTask()
{
return new ServiceTask();
}
/**
* Create instance of SignalEventDefinition.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\SignalEventDefinitionInterface
*/
public function createSignalEventDefinition()
{
return new SignalEventDefinition();
}
/**
* Create instance of Signal.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\SignalInterface
*/
public function createSignal()
{
return new Signal();
}
/**
* Create instance of StartEvent.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\StartEventInterface
*/
public function createStartEvent()
{
return new StartEvent();
}
/**
* Create instance of State.
*
* @param FlowNodeInterface $owner
* @param string $name
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\StateInterface
*/
public function createState(FlowNodeInterface $owner, $name = '')
{
return new State($owner, $name);
}
/**
* Create instance of TerminateEventDefinition.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\TerminateEventDefinitionInterface
*/
public function createTerminateEventDefinition()
{
return new TerminateEventDefinition();
}
/**
* Create instance of TimerEventDefinition.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\TimerEventDefinitionInterface
*/
public function createTimerEventDefinition()
{
return new TimerEventDefinition();
}
/**
* Create instance of MultiInstanceLoopCharacteristics.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\MultiInstanceLoopCharacteristicsInterface
*/
public function createMultiInstanceLoopCharacteristics()
{
return new MultiInstanceLoopCharacteristics();
}
/**
* Create instance of InputOutputSpecification
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\InputOutputSpecificationInterface
*/
public function createInputOutputSpecification()
{
return new InputOutputSpecification();
}
/**
* Create instance of BoundaryEvent
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\BoundaryEventInterface
*/
public function createBoundaryEvent()
{
return new BoundaryEvent();
}
/**
* Creates a TokenRepository
*
* @return \ProcessMaker\Nayra\Contracts\Repositories\TokenRepositoryInterface
*/
public function getTokenRepository()
{
if ($this->tokenRepo === null) {
$this->tokenRepo = new TokenRepository();
}
return $this->tokenRepo;
}
/**
* Create a StandardLoopCharacteristics.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\StandardLoopCharacteristicsInterface
*/
public function createStandardLoopCharacteristics()
{
return new StandardLoopCharacteristics();
}
public function createDataInputAssociation()
{
return new DataInputAssociation();
}
public function createAssignment()
{
return new Assignment();
}
public function createDataOutputAssociation()
{
return new DataOutputAssociation();
}
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Exceptions/InvalidSequenceFlowException.php | src/ProcessMaker/Nayra/Exceptions/InvalidSequenceFlowException.php | <?php
namespace ProcessMaker\Nayra\Exceptions;
use Exception;
/**
* Exception raised if the definition of a process is invalid
*/
class InvalidSequenceFlowException extends Exception
{
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Exceptions/ElementNotFoundException.php | src/ProcessMaker/Nayra/Exceptions/ElementNotFoundException.php | <?php
namespace ProcessMaker\Nayra\Exceptions;
use OutOfBoundsException;
/**
* Thrown when try to get an element that is not found in the BPMN definitions.
*/
class ElementNotFoundException extends OutOfBoundsException
{
public $elementId;
/**
* Exception constructor.
*
* @param string $id
*/
public function __construct($id)
{
$this->elementId = $id;
parent::__construct('Element "' . $id . '" was not found');
}
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Exceptions/RuntimeException.php | src/ProcessMaker/Nayra/Exceptions/RuntimeException.php | <?php
namespace ProcessMaker\Nayra\Exceptions;
use Exception;
use ProcessMaker\Nayra\Contracts\Bpmn\FlowNodeInterface;
/**
* Thrown when try to load a non implemented BPMN tag
*/
class RuntimeException extends Exception
{
/**
* @var FlowNodeInterface
*/
public $element;
public function __construct($message = "", $code = 0, Exception $previous = null, FlowNodeInterface $element)
{
$this->element = $element;
parent::__construct($message, $code, $previous);
}
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Exceptions/ElementNotImplementedException.php | src/ProcessMaker/Nayra/Exceptions/ElementNotImplementedException.php | <?php
namespace ProcessMaker\Nayra\Exceptions;
use DomainException;
/**
* Thrown when try to load a non implemented BPMN tag
*/
class ElementNotImplementedException extends DomainException
{
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Exceptions/NamespaceNotImplementedException.php | src/ProcessMaker/Nayra/Exceptions/NamespaceNotImplementedException.php | <?php
namespace ProcessMaker\Nayra\Exceptions;
use DomainException;
/**
* Thrown when try to load a non implemented BPMN tag
*/
class NamespaceNotImplementedException extends DomainException
{
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Exceptions/ActivityWorkException.php | src/ProcessMaker/Nayra/Exceptions/ActivityWorkException.php | <?php
namespace ProcessMaker\Nayra\Exceptions;
use Exception;
/**
* Exception raised during the execution of an activity.
*/
class ActivityWorkException extends Exception
{
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Storage/BPMNValidator.php | src/ProcessMaker/Nayra/Storage/BPMNValidator.php | <?php
namespace ProcessMaker\Nayra\Storage;
use LibXMLError;
use ProcessMaker\Nayra\Contracts\Storage\BpmnDocumentInterface;
/**
* Validate a BPMN document
*/
class BPMNValidator
{
/**
* @var BpmnDocument
*/
private $document;
/**
* LIBXML errors
*
* @var array
*/
private $errors = [];
/**
* Validation constructor
*
* @param \ProcessMaker\Nayra\Contracts\Storage\BpmnDocumentInterface $handler [description]
*/
public function __construct(BpmnDocumentInterface $document)
{
$this->document = $document;
}
/**
* @param \LibXMLError object $error
*
* @return string
*/
private function libxmlDisplayError(LibXMLError $error)
{
$errorString = "Error $error->code (Line:{$error->line}):";
$errorString .= trim($error->message);
return $errorString;
}
/**
* @return array
*/
private function getLibxmlErrors()
{
$errors = libxml_get_errors();
$result = [];
foreach ($errors as $error) {
$result[] = $this->libxmlDisplayError($error);
}
libxml_clear_errors();
return $result;
}
/**
* Validate Incoming Feeds against Listing Schema
*
* @param string $schema
*
* @return bool
*/
public function validate($schema)
{
$this->errors = $this->getLibxmlErrors();
$hasErrors = false;
$validation = $this->document->schemaValidate($schema);
if (!$validation) {
$this->errors = array_merge($this->errors, $this->getLibxmlErrors());
$hasErrors = true;
}
return !$hasErrors;
}
/**
* Display Error if Resource is not validated
*
* @return array
*/
public function getErrors()
{
return $this->errors;
}
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Storage/BpmnDocument.php | src/ProcessMaker/Nayra/Storage/BpmnDocument.php | <?php
namespace ProcessMaker\Nayra\Storage;
use DOMDocument;
use DOMElement;
use DOMXPath;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\AssignmentInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\BoundaryEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\CallActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\CatchEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\CollaborationInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ConditionalEventDefinitionInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\DataInputAssociationInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\DataInputInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\DataOutputAssociationInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\DataOutputInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\DataStoreInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EntityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ErrorEventDefinitionInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ErrorInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventBasedGatewayInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventDefinitionInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ExclusiveGatewayInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\FlowInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\FlowNodeInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\FormalExpressionInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\GatewayInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\InclusiveGatewayInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\InputOutputSpecificationInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\InputSetInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\IntermediateCatchEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\IntermediateThrowEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ItemDefinitionInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\LaneInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\LaneSetInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\LoopCharacteristicsInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\MessageEventDefinitionInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\MessageFlowInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\MessageInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\MultiInstanceLoopCharacteristicsInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\OperationInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\OutputSetInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ParallelGatewayInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ParticipantInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ScriptTaskInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ServiceInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ServiceTaskInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\SignalEventDefinitionInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\SignalInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\StandardLoopCharacteristicsInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\StartEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\TerminateEventDefinitionInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ThrowEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\TimerEventDefinitionInterface;
use ProcessMaker\Nayra\Contracts\Engine\EngineInterface;
use ProcessMaker\Nayra\Contracts\RepositoryInterface;
use ProcessMaker\Nayra\Contracts\Storage\BpmnDocumentInterface;
use ProcessMaker\Nayra\Exceptions\ElementNotFoundException;
/**
* BPMN file
*/
class BpmnDocument extends DOMDocument implements BpmnDocumentInterface
{
const BPMN_MODEL = 'http://www.omg.org/spec/BPMN/20100524/MODEL';
/**
* @var \ProcessMaker\Nayra\Contracts\Bpmn\EntityInterface
*/
private $bpmnElements = [];
/**
* @var \ProcessMaker\Nayra\Contracts\Engine\EngineInterface
*/
private $engine;
/**
* @var \ProcessMaker\Nayra\Contracts\FactoryInterface
*/
private $factory;
/**
* @var bool
*/
private $skipElementsNotImplemented = false;
/**
* BPMNValidator errors.
*
* @var array
*/
private $validationErrors = [];
private $mapping = [
'http://www.omg.org/spec/BPMN/20100524/MODEL' => [
'process' => [
ProcessInterface::class,
[
'activities' => ['n', ActivityInterface::class],
'gateways' => ['n', GatewayInterface::class],
'events' => ['n', EventInterface::class],
ProcessInterface::BPMN_PROPERTY_LANE_SET => ['n', [self::BPMN_MODEL, ProcessInterface::BPMN_PROPERTY_LANE_SET]],
],
],
'startEvent' => [
StartEventInterface::class,
[
FlowNodeInterface::BPMN_PROPERTY_INCOMING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_INCOMING]],
FlowNodeInterface::BPMN_PROPERTY_OUTGOING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_OUTGOING]],
StartEventInterface::BPMN_PROPERTY_EVENT_DEFINITIONS => ['n', EventDefinitionInterface::class],
],
],
'endEvent' => [
EndEventInterface::class,
[
FlowNodeInterface::BPMN_PROPERTY_INCOMING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_INCOMING]],
FlowNodeInterface::BPMN_PROPERTY_OUTGOING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_OUTGOING]],
EndEventInterface::BPMN_PROPERTY_EVENT_DEFINITIONS => ['n', EventDefinitionInterface::class],
IntermediateThrowEventInterface::BPMN_PROPERTY_DATA_INPUT => ['n', [self::BPMN_MODEL, IntermediateThrowEventInterface::BPMN_PROPERTY_DATA_INPUT]],
IntermediateThrowEventInterface::BPMN_PROPERTY_DATA_INPUT_SET => ['1', [self::BPMN_MODEL, IntermediateThrowEventInterface::BPMN_PROPERTY_DATA_INPUT_SET]],
IntermediateThrowEventInterface::BPMN_PROPERTY_DATA_INPUT_ASSOCIATION => ['n', [self::BPMN_MODEL, IntermediateThrowEventInterface::BPMN_PROPERTY_DATA_INPUT_ASSOCIATION]],
],
],
'task' => [
ActivityInterface::class,
[
FlowNodeInterface::BPMN_PROPERTY_INCOMING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_INCOMING]],
FlowNodeInterface::BPMN_PROPERTY_OUTGOING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_OUTGOING]],
ActivityInterface::BPMN_PROPERTY_LOOP_CHARACTERISTICS => ['1', LoopCharacteristicsInterface::class],
ActivityInterface::BPMN_PROPERTY_IO_SPECIFICATION => ['1', [self::BPMN_MODEL, ActivityInterface::BPMN_PROPERTY_IO_SPECIFICATION]],
],
],
'userTask' => [
ActivityInterface::class,
[
FlowNodeInterface::BPMN_PROPERTY_INCOMING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_INCOMING]],
FlowNodeInterface::BPMN_PROPERTY_OUTGOING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_OUTGOING]],
ActivityInterface::BPMN_PROPERTY_LOOP_CHARACTERISTICS => ['1', LoopCharacteristicsInterface::class],
ActivityInterface::BPMN_PROPERTY_IO_SPECIFICATION => ['1', [self::BPMN_MODEL, ActivityInterface::BPMN_PROPERTY_IO_SPECIFICATION]],
],
],
'scriptTask' => [
ScriptTaskInterface::class,
[
FlowNodeInterface::BPMN_PROPERTY_INCOMING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_INCOMING]],
FlowNodeInterface::BPMN_PROPERTY_OUTGOING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_OUTGOING]],
ScriptTaskInterface::BPMN_PROPERTY_SCRIPT => ['1', [self::BPMN_MODEL, ScriptTaskInterface::BPMN_PROPERTY_SCRIPT]],
ActivityInterface::BPMN_PROPERTY_LOOP_CHARACTERISTICS => ['1', LoopCharacteristicsInterface::class],
ActivityInterface::BPMN_PROPERTY_IO_SPECIFICATION => ['1', [self::BPMN_MODEL, ActivityInterface::BPMN_PROPERTY_IO_SPECIFICATION]],
],
],
'serviceTask' => [
ServiceTaskInterface::class,
[
FlowNodeInterface::BPMN_PROPERTY_INCOMING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_INCOMING]],
FlowNodeInterface::BPMN_PROPERTY_OUTGOING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_OUTGOING]],
ActivityInterface::BPMN_PROPERTY_LOOP_CHARACTERISTICS => ['1', LoopCharacteristicsInterface::class],
ActivityInterface::BPMN_PROPERTY_IO_SPECIFICATION => ['1', [self::BPMN_MODEL, ActivityInterface::BPMN_PROPERTY_IO_SPECIFICATION]],
],
],
FlowNodeInterface::BPMN_PROPERTY_OUTGOING => [self::IS_REFERENCE, []],
FlowNodeInterface::BPMN_PROPERTY_INCOMING => [self::IS_REFERENCE, []],
'sequenceFlow' => [
FlowInterface::class,
[
FlowInterface::BPMN_PROPERTY_SOURCE => ['1', [self::BPMN_MODEL, FlowInterface::BPMN_PROPERTY_SOURCE_REF]],
FlowInterface::BPMN_PROPERTY_TARGET => ['1', [self::BPMN_MODEL, FlowInterface::BPMN_PROPERTY_TARGET_REF]],
FlowInterface::BPMN_PROPERTY_CONDITION_EXPRESSION => ['1', [self::BPMN_MODEL, 'conditionExpression']],
],
],
'callActivity' => [
CallActivityInterface::class,
[
FlowNodeInterface::BPMN_PROPERTY_INCOMING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_INCOMING]],
FlowNodeInterface::BPMN_PROPERTY_OUTGOING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_OUTGOING]],
CallActivityInterface::BPMN_PROPERTY_CALLED_ELEMENT => ['1', [self::BPMN_MODEL, CallActivityInterface::BPMN_PROPERTY_CALLED_ELEMENT]],
ActivityInterface::BPMN_PROPERTY_LOOP_CHARACTERISTICS => ['1', LoopCharacteristicsInterface::class],
ActivityInterface::BPMN_PROPERTY_IO_SPECIFICATION => ['1', [self::BPMN_MODEL, ActivityInterface::BPMN_PROPERTY_IO_SPECIFICATION]],
],
],
'parallelGateway' => [
ParallelGatewayInterface::class,
[
FlowNodeInterface::BPMN_PROPERTY_INCOMING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_INCOMING]],
FlowNodeInterface::BPMN_PROPERTY_OUTGOING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_OUTGOING]],
],
],
'inclusiveGateway' => [
InclusiveGatewayInterface::class,
[
FlowNodeInterface::BPMN_PROPERTY_INCOMING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_INCOMING]],
FlowNodeInterface::BPMN_PROPERTY_OUTGOING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_OUTGOING]],
GatewayInterface::BPMN_PROPERTY_DEFAULT => ['1', [self::BPMN_MODEL, GatewayInterface::BPMN_PROPERTY_DEFAULT]],
],
],
'exclusiveGateway' => [
ExclusiveGatewayInterface::class,
[
FlowNodeInterface::BPMN_PROPERTY_INCOMING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_INCOMING]],
FlowNodeInterface::BPMN_PROPERTY_OUTGOING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_OUTGOING]],
GatewayInterface::BPMN_PROPERTY_DEFAULT => ['1', [self::BPMN_MODEL, GatewayInterface::BPMN_PROPERTY_DEFAULT]],
],
],
'eventBasedGateway' => [
EventBasedGatewayInterface::class,
[
FlowNodeInterface::BPMN_PROPERTY_INCOMING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_INCOMING]],
FlowNodeInterface::BPMN_PROPERTY_OUTGOING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_OUTGOING]],
],
],
'conditionExpression' => [
FormalExpressionInterface::class,
[
FormalExpressionInterface::BPMN_PROPERTY_BODY => ['1', self::DOM_ELEMENT_BODY],
],
],
'script' => [self::TEXT_PROPERTY, []],
'collaboration' => [
CollaborationInterface::class,
[
CollaborationInterface::BPMN_PROPERTY_PARTICIPANT => ['n', [self::BPMN_MODEL, CollaborationInterface::BPMN_PROPERTY_PARTICIPANT]],
CollaborationInterface::BPMN_PROPERTY_MESSAGE_FLOWS => ['n', [self::BPMN_MODEL, CollaborationInterface::BPMN_PROPERTY_MESSAGE_FLOW]],
],
],
'participant' => [
ParticipantInterface::class,
[
ParticipantInterface::BPMN_PROPERTY_PROCESS => ['1', [self::BPMN_MODEL, ParticipantInterface::BPMN_PROPERTY_PROCESS_REF]],
ParticipantInterface::BPMN_PROPERTY_PARTICIPANT_MULTIPICITY => ['1', [self::BPMN_MODEL, ParticipantInterface::BPMN_PROPERTY_PARTICIPANT_MULTIPICITY]],
],
],
'participantMultiplicity' => [self::IS_ARRAY, []],
'conditionalEventDefinition' => [
ConditionalEventDefinitionInterface::class,
[
ConditionalEventDefinitionInterface::BPMN_PROPERTY_CONDITION => ['1', [self::BPMN_MODEL, ConditionalEventDefinitionInterface::BPMN_PROPERTY_CONDITION]],
],
],
'condition' => [
FormalExpressionInterface::class,
[
FormalExpressionInterface::BPMN_PROPERTY_BODY => ['1', self::DOM_ELEMENT_BODY],
],
],
'extensionElements' => self::SKIP_ELEMENT,
'documentation' => self::SKIP_ELEMENT,
'inputSet' => [
InputSetInterface::class,
[
InputSetInterface::BPMN_PROPERTY_DATA_INPUTS => ['n', [self::BPMN_MODEL, InputSetInterface::BPMN_PROPERTY_DATA_INPUT_REFS]],
],
],
InputSetInterface::BPMN_PROPERTY_DATA_INPUT_REFS => [self::IS_REFERENCE, []],
'outputSet' => [
OutputSetInterface::class,
[
OutputSetInterface::BPMN_PROPERTY_DATA_OUTPUTS => ['n', [self::BPMN_MODEL, OutputSetInterface::BPMN_PROPERTY_DATA_OUTPUT_REFS]],
],
],
OutputSetInterface::BPMN_PROPERTY_DATA_OUTPUT_REFS => [self::IS_REFERENCE, []],
'terminateEventDefinition' => [
TerminateEventDefinitionInterface::class,
[
],
],
'errorEventDefinition' => [
ErrorEventDefinitionInterface::class,
[
ErrorEventDefinitionInterface::BPMN_PROPERTY_ERROR => ['1', [self::BPMN_MODEL, ErrorEventDefinitionInterface::BPMN_PROPERTY_ERROR_REF]],
],
],
'error' => [
ErrorInterface::class,
[
],
],
'messageFlow' => [
MessageFlowInterface::class,
[
MessageFlowInterface::BPMN_PROPERTY_SOURCE => ['1', [self::BPMN_MODEL, MessageFlowInterface::BPMN_PROPERTY_SOURCE_REF]],
MessageFlowInterface::BPMN_PROPERTY_TARGET => ['1', [self::BPMN_MODEL, MessageFlowInterface::BPMN_PROPERTY_TARGET_REF]],
MessageFlowInterface::BPMN_PROPERTY_COLLABORATION => self::PARENT_NODE,
],
],
'timerEventDefinition' => [
TimerEventDefinitionInterface::class,
[
TimerEventDefinitionInterface::BPMN_PROPERTY_TIME_DATE => ['1', [self::BPMN_MODEL, TimerEventDefinitionInterface::BPMN_PROPERTY_TIME_DATE]],
TimerEventDefinitionInterface::BPMN_PROPERTY_TIME_CYCLE => ['1', [self::BPMN_MODEL, TimerEventDefinitionInterface::BPMN_PROPERTY_TIME_CYCLE]],
TimerEventDefinitionInterface::BPMN_PROPERTY_TIME_DURATION => ['1', [self::BPMN_MODEL, TimerEventDefinitionInterface::BPMN_PROPERTY_TIME_DURATION]],
],
],
TimerEventDefinitionInterface::BPMN_PROPERTY_TIME_DATE => [
FormalExpressionInterface::class,
[
FormalExpressionInterface::BPMN_PROPERTY_BODY => ['1', self::DOM_ELEMENT_BODY],
],
],
TimerEventDefinitionInterface::BPMN_PROPERTY_TIME_CYCLE => [
FormalExpressionInterface::class,
[
FormalExpressionInterface::BPMN_PROPERTY_BODY => ['1', self::DOM_ELEMENT_BODY],
],
],
TimerEventDefinitionInterface::BPMN_PROPERTY_TIME_DURATION => [
FormalExpressionInterface::class,
[
FormalExpressionInterface::BPMN_PROPERTY_BODY => ['1', self::DOM_ELEMENT_BODY],
],
],
'laneSet' => [
LaneSetInterface::class,
[
LaneSetInterface::BPMN_PROPERTY_LANE => ['n', [self::BPMN_MODEL, LaneSetInterface::BPMN_PROPERTY_LANE]],
],
],
'lane' => [
LaneInterface::class,
[
LaneInterface::BPMN_PROPERTY_FLOW_NODE => ['n', [self::BPMN_MODEL, LaneInterface::BPMN_PROPERTY_FLOW_NODE_REF]],
LaneInterface::BPMN_PROPERTY_CHILD_LANE_SET => ['n', [self::BPMN_MODEL, LaneInterface::BPMN_PROPERTY_CHILD_LANE_SET]],
],
],
LaneInterface::BPMN_PROPERTY_FLOW_NODE_REF => [self::IS_REFERENCE, []],
LaneInterface::BPMN_PROPERTY_CHILD_LANE_SET => [
LaneSetInterface::class,
[
LaneSetInterface::BPMN_PROPERTY_LANE => ['n', [self::BPMN_MODEL, LaneSetInterface::BPMN_PROPERTY_LANE]],
],
],
'interface' => [
ServiceInterface::class,
[
ServiceInterface::BPMN_PROPERTY_OPERATIONS => ['n', [self::BPMN_MODEL, OperationInterface::BPMN_TAG]],
],
],
OperationInterface::BPMN_TAG => [
OperationInterface::class,
[
OperationInterface::BPMN_PROPERTY_IN_MESSAGE => ['n', [self::BPMN_MODEL, OperationInterface::BPMN_PROPERTY_IN_MESSAGE_REF]],
OperationInterface::BPMN_PROPERTY_OUT_MESSAGE => ['n', [self::BPMN_MODEL, OperationInterface::BPMN_PROPERTY_OUT_MESSAGE_REF]],
OperationInterface::BPMN_PROPERTY_ERRORS => ['n', [self::BPMN_MODEL, OperationInterface::BPMN_PROPERTY_ERROR_REF]],
],
],
OperationInterface::BPMN_PROPERTY_IN_MESSAGE_REF => [self::IS_REFERENCE, []],
OperationInterface::BPMN_PROPERTY_OUT_MESSAGE_REF => [self::IS_REFERENCE, []],
OperationInterface::BPMN_PROPERTY_ERROR_REF => [self::IS_REFERENCE, []],
'messageEventDefinition' => [
MessageEventDefinitionInterface::class,
[
MessageEventDefinitionInterface::BPMN_PROPERTY_OPERATION => ['1', [self::BPMN_MODEL, MessageEventDefinitionInterface::BPMN_PROPERTY_OPERATION_REF]],
MessageEventDefinitionInterface::BPMN_PROPERTY_MESSAGE => ['1', [self::BPMN_MODEL, MessageEventDefinitionInterface::BPMN_PROPERTY_MESSAGE_REF]],
],
],
MessageEventDefinitionInterface::BPMN_PROPERTY_OPERATION_REF => [self::IS_REFERENCE, []],
'message' => [
MessageInterface::class,
[
MessageInterface::BPMN_PROPERTY_ITEM => ['1', [self::BPMN_MODEL, MessageInterface::BPMN_PROPERTY_ITEM_REF]],
],
],
'intermediateCatchEvent' => [
IntermediateCatchEventInterface::class,
[
FlowNodeInterface::BPMN_PROPERTY_INCOMING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_INCOMING]],
FlowNodeInterface::BPMN_PROPERTY_OUTGOING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_OUTGOING]],
IntermediateCatchEventInterface::BPMN_PROPERTY_EVENT_DEFINITIONS => ['n', EventDefinitionInterface::class],
],
],
'intermediateThrowEvent' => [
IntermediateThrowEventInterface::class,
[
FlowNodeInterface::BPMN_PROPERTY_INCOMING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_INCOMING]],
FlowNodeInterface::BPMN_PROPERTY_OUTGOING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_OUTGOING]],
IntermediateThrowEventInterface::BPMN_PROPERTY_EVENT_DEFINITIONS => ['n', EventDefinitionInterface::class],
IntermediateThrowEventInterface::BPMN_PROPERTY_DATA_INPUT => ['n', [self::BPMN_MODEL, IntermediateThrowEventInterface::BPMN_PROPERTY_DATA_INPUT]],
IntermediateThrowEventInterface::BPMN_PROPERTY_DATA_INPUT_SET => ['1', [self::BPMN_MODEL, IntermediateThrowEventInterface::BPMN_PROPERTY_DATA_INPUT_SET]],
IntermediateThrowEventInterface::BPMN_PROPERTY_DATA_INPUT_ASSOCIATION => ['n', [self::BPMN_MODEL, IntermediateThrowEventInterface::BPMN_PROPERTY_DATA_INPUT_ASSOCIATION]],
],
],
ThrowEventInterface::BPMN_PROPERTY_DATA_INPUT_ASSOCIATION => [
DataInputAssociationInterface::class,
[
DataInputAssociationInterface::BPMN_PROPERTY_TARGET_REF => ['1', [self::BPMN_MODEL, DataInputAssociationInterface::BPMN_PROPERTY_TARGET_REF]],
DataInputAssociationInterface::BPMN_PROPERTY_SOURCES_REF => ['1', [self::BPMN_MODEL, DataInputAssociationInterface::BPMN_PROPERTY_SOURCES_REF]],
DataInputAssociationInterface::BPMN_PROPERTY_ASSIGNMENT => ['n', [self::BPMN_MODEL, DataInputAssociationInterface::BPMN_PROPERTY_ASSIGNMENT]],
DataInputAssociationInterface::BPMN_PROPERTY_TRANSFORMATION => ['1', [self::BPMN_MODEL, DataInputAssociationInterface::BPMN_PROPERTY_TRANSFORMATION]],
],
],
DataInputAssociationInterface::BPMN_PROPERTY_TARGET_REF => [self::IS_REFERENCE_OPTIONAL, []],
DataInputAssociationInterface::BPMN_PROPERTY_SOURCES_REF => [self::IS_REFERENCE_OPTIONAL, []],
DataInputAssociationInterface::BPMN_PROPERTY_TRANSFORMATION => [
FormalExpressionInterface::class,
[
FormalExpressionInterface::BPMN_PROPERTY_BODY => ['1', self::DOM_ELEMENT_BODY],
],
],
DataInputAssociationInterface::BPMN_PROPERTY_ASSIGNMENT => [
AssignmentInterface::class,
[
AssignmentInterface::BPMN_PROPERTY_FROM => ['1', [self::BPMN_MODEL, AssignmentInterface::BPMN_PROPERTY_FROM]],
AssignmentInterface::BPMN_PROPERTY_TO => ['1', [self::BPMN_MODEL, AssignmentInterface::BPMN_PROPERTY_TO]],
],
],
AssignmentInterface::BPMN_PROPERTY_FROM => [
FormalExpressionInterface::class,
[
FormalExpressionInterface::BPMN_PROPERTY_BODY => ['1', self::DOM_ELEMENT_BODY],
],
],
AssignmentInterface::BPMN_PROPERTY_TO => [
FormalExpressionInterface::class,
[
FormalExpressionInterface::BPMN_PROPERTY_BODY => ['1', self::DOM_ELEMENT_BODY],
],
],
CatchEventInterface::BPMN_PROPERTY_DATA_OUTPUT_ASSOCIATION => [
DataOutputAssociationInterface::class,
[
DataOutputAssociationInterface::BPMN_PROPERTY_TARGET_REF => ['1', [self::BPMN_MODEL, DataOutputAssociationInterface::BPMN_PROPERTY_TARGET_REF]],
DataOutputAssociationInterface::BPMN_PROPERTY_SOURCES_REF => ['1', [self::BPMN_MODEL, DataOutputAssociationInterface::BPMN_PROPERTY_SOURCES_REF]],
DataOutputAssociationInterface::BPMN_PROPERTY_ASSIGNMENT => ['n', [self::BPMN_MODEL, DataOutputAssociationInterface::BPMN_PROPERTY_ASSIGNMENT]],
DataOutputAssociationInterface::BPMN_PROPERTY_TRANSFORMATION => ['1', [self::BPMN_MODEL, DataOutputAssociationInterface::BPMN_PROPERTY_TRANSFORMATION]],
],
],
'signalEventDefinition' => [
SignalEventDefinitionInterface::class,
[
SignalEventDefinitionInterface::BPMN_PROPERTY_SIGNAL => ['1', [self::BPMN_MODEL, SignalEventDefinitionInterface::BPMN_PROPERTY_SIGNAL_REF]],
],
],
'itemDefinition' => [
ItemDefinitionInterface::class,
[
],
],
'signal' => [
SignalInterface::class,
[
],
],
'dataInput' => [
DataInputInterface::class,
[
DataInputInterface::BPMN_PROPERTY_ITEM_SUBJECT => ['1', [self::BPMN_MODEL, DataInputInterface::BPMN_PROPERTY_ITEM_SUBJECT_REF]],
DataInputInterface::BPMN_PROPERTY_IS_COLLECTION => self::IS_BOOLEAN,
],
],
'dataOutput' => [
DataOutputInterface::class,
[
DataOutputInterface::BPMN_PROPERTY_ITEM_SUBJECT => ['1', [self::BPMN_MODEL, DataOutputInterface::BPMN_PROPERTY_ITEM_SUBJECT_REF]],
DataOutputInterface::BPMN_PROPERTY_IS_COLLECTION => self::IS_BOOLEAN,
],
],
'dataStore' => [
DataStoreInterface::class,
[],
],
'boundaryEvent' => [
BoundaryEventInterface::class,
[
BoundaryEventInterface::BPMN_PROPERTY_CANCEL_ACTIVITY => self::IS_BOOLEAN,
BoundaryEventInterface::BPMN_PROPERTY_ATTACHED_TO => ['1', [self::BPMN_MODEL, BoundaryEventInterface::BPMN_PROPERTY_ATTACHED_TO_REF]],
CatchEventInterface::BPMN_PROPERTY_EVENT_DEFINITIONS => ['n', EventDefinitionInterface::class],
FlowNodeInterface::BPMN_PROPERTY_OUTGOING => ['n', [self::BPMN_MODEL, FlowNodeInterface::BPMN_PROPERTY_OUTGOING]],
CatchEventInterface::BPMN_PROPERTY_DATA_OUTPUT => ['n', [self::BPMN_MODEL, CatchEventInterface::BPMN_PROPERTY_DATA_OUTPUT]],
CatchEventInterface::BPMN_PROPERTY_DATA_OUTPUT_SET => ['1', [self::BPMN_MODEL, CatchEventInterface::BPMN_PROPERTY_DATA_OUTPUT_SET]],
CatchEventInterface::BPMN_PROPERTY_DATA_OUTPUT_ASSOCIATION => ['n', [self::BPMN_MODEL, CatchEventInterface::BPMN_PROPERTY_DATA_OUTPUT_ASSOCIATION]],
],
],
'multiInstanceLoopCharacteristics' => [
MultiInstanceLoopCharacteristicsInterface::class,
[
MultiInstanceLoopCharacteristicsInterface::BPMN_PROPERTY_IS_SEQUENTIAL => self::IS_BOOLEAN,
MultiInstanceLoopCharacteristicsInterface::BPMN_PROPERTY_LOOP_CARDINALITY => ['1', [self::BPMN_MODEL, MultiInstanceLoopCharacteristicsInterface::BPMN_PROPERTY_LOOP_CARDINALITY]],
MultiInstanceLoopCharacteristicsInterface::BPMN_PROPERTY_COMPLETION_CONDITION => ['1', [self::BPMN_MODEL, MultiInstanceLoopCharacteristicsInterface::BPMN_PROPERTY_COMPLETION_CONDITION]],
MultiInstanceLoopCharacteristicsInterface::BPMN_PROPERTY_LOOP_DATA_INPUT => ['1', [self::BPMN_MODEL, MultiInstanceLoopCharacteristicsInterface::BPMN_PROPERTY_LOOP_DATA_INPUT_REF]],
MultiInstanceLoopCharacteristicsInterface::BPMN_PROPERTY_LOOP_DATA_OUTPUT => ['1', [self::BPMN_MODEL, MultiInstanceLoopCharacteristicsInterface::BPMN_PROPERTY_LOOP_DATA_OUTPUT_REF]],
MultiInstanceLoopCharacteristicsInterface::BPMN_PROPERTY_INPUT_DATA_ITEM => ['1', [self::BPMN_MODEL, MultiInstanceLoopCharacteristicsInterface::BPMN_PROPERTY_INPUT_DATA_ITEM]],
MultiInstanceLoopCharacteristicsInterface::BPMN_PROPERTY_OUTPUT_DATA_ITEM => ['1', [self::BPMN_MODEL, MultiInstanceLoopCharacteristicsInterface::BPMN_PROPERTY_OUTPUT_DATA_ITEM]],
],
],
'loopCardinality' => [
FormalExpressionInterface::class,
[
FormalExpressionInterface::BPMN_PROPERTY_BODY => ['1', self::DOM_ELEMENT_BODY],
],
],
'completionCondition' => [
FormalExpressionInterface::class,
[
FormalExpressionInterface::BPMN_PROPERTY_BODY => ['1', self::DOM_ELEMENT_BODY],
],
],
'ioSpecification' => [
InputOutputSpecificationInterface::class,
[
InputOutputSpecificationInterface::BPMN_PROPERTY_DATA_INPUT => ['n', [self::BPMN_MODEL, InputOutputSpecificationInterface::BPMN_PROPERTY_DATA_INPUT]],
InputOutputSpecificationInterface::BPMN_PROPERTY_DATA_OUTPUT => ['n', [self::BPMN_MODEL, InputOutputSpecificationInterface::BPMN_PROPERTY_DATA_OUTPUT]],
InputOutputSpecificationInterface::BPMN_PROPERTY_DATA_INPUT_SET => ['1', [self::BPMN_MODEL, InputOutputSpecificationInterface::BPMN_PROPERTY_DATA_INPUT_SET]],
InputOutputSpecificationInterface::BPMN_PROPERTY_DATA_OUTPUT_SET => ['1', [self::BPMN_MODEL, InputOutputSpecificationInterface::BPMN_PROPERTY_DATA_OUTPUT_SET]],
],
],
'loopDataInputRef' => [self::IS_REFERENCE, []],
'loopDataOutputRef' => [self::IS_REFERENCE, []],
'inputDataItem' => [
DataInputInterface::class,
[
DataInputInterface::BPMN_PROPERTY_ITEM_SUBJECT => ['1', [self::BPMN_MODEL, DataInputInterface::BPMN_PROPERTY_ITEM_SUBJECT_REF]],
DataInputInterface::BPMN_PROPERTY_IS_COLLECTION => self::IS_BOOLEAN,
],
],
'outputDataItem' => [
DataOutputInterface::class,
[
DataOutputInterface::BPMN_PROPERTY_ITEM_SUBJECT => ['1', [self::BPMN_MODEL, DataOutputInterface::BPMN_PROPERTY_ITEM_SUBJECT_REF]],
DataOutputInterface::BPMN_PROPERTY_IS_COLLECTION => self::IS_BOOLEAN,
],
],
'standardLoopCharacteristics' => [
StandardLoopCharacteristicsInterface::class,
[
StandardLoopCharacteristicsInterface::BPMN_PROPERTY_TEST_BEFORE => self::IS_BOOLEAN,
//StandardLoopCharacteristicsInterface::BPMN_PROPERTY_LOOP_MAXIMUM => ['1', [BpmnDocument::BPMN_MODEL, StandardLoopCharacteristicsInterface::BPMN_PROPERTY_LOOP_MAXIMUM]],
StandardLoopCharacteristicsInterface::BPMN_PROPERTY_LOOP_CONDITION => ['1', [self::BPMN_MODEL, StandardLoopCharacteristicsInterface::BPMN_PROPERTY_LOOP_CONDITION]],
],
],
'loopCondition' => [
FormalExpressionInterface::class,
[
FormalExpressionInterface::BPMN_PROPERTY_BODY => ['1', self::DOM_ELEMENT_BODY],
],
],
],
];
const DOM_ELEMENT_BODY = [null, '#text'];
const SKIP_ELEMENT = null;
const IS_REFERENCE = 'isReference';
const IS_REFERENCE_OPTIONAL = 'isReferenceOptional';
const TEXT_PROPERTY = 'textProperty';
const IS_ARRAY = 'isArray';
const PARENT_NODE = [1, '#parent'];
const IS_BOOLEAN = [1, '#boolean'];
/**
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | true |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Storage/BpmnElement.php | src/ProcessMaker/Nayra/Storage/BpmnElement.php | <?php
namespace ProcessMaker\Nayra\Storage;
use DOMAttr;
use DOMElement;
use ProcessMaker\Nayra\Contracts\Bpmn\CallableElementInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EntityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\FlowNodeInterface;
use ProcessMaker\Nayra\Contracts\Storage\BpmnElementInterface;
use ProcessMaker\Nayra\Exceptions\ElementNotImplementedException;
use ProcessMaker\Nayra\Exceptions\NamespaceNotImplementedException;
/**
* Description of BpmnFileElement
*
* @property BpmnDocument $ownerDocument
*/
class BpmnElement extends DOMElement implements BpmnElementInterface
{
/**
* Get instance of the BPMN element.
*
* @param object $owner
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\EntityInterface
*/
public function getBpmnElementInstance($owner = null)
{
$id = $this->getAttribute('id');
if ($id && $this->ownerDocument->hasBpmnInstance($id)) {
return $this->ownerDocument->getElementInstanceById($id);
}
$map = $this->ownerDocument->getBpmnElementsMapping();
if (!array_key_exists($this->namespaceURI, $map)) {
throw new NamespaceNotImplementedException($this->namespaceURI);
}
if (!array_key_exists($this->localName, $map[$this->namespaceURI]) && $this->ownerDocument->getSkipElementsNotImplemented()) {
return null;
} elseif (!array_key_exists($this->localName, $map[$this->namespaceURI])) {
throw new ElementNotImplementedException($this->localName);
}
if ($map[$this->namespaceURI][$this->localName] === BpmnDocument::SKIP_ELEMENT) {
return null;
}
list($classInterface, $mapProperties) = $map[$this->namespaceURI][$this->localName];
if ($classInterface === BpmnDocument::IS_REFERENCE || $classInterface === BpmnDocument::IS_REFERENCE_OPTIONAL) {
$bpmnElement = $this->ownerDocument->getElementInstanceById(
$this->nodeValue,
$classInterface === BpmnDocument::IS_REFERENCE_OPTIONAL
);
} elseif ($classInterface === BpmnDocument::TEXT_PROPERTY) {
$bpmnElement = $this->nodeValue;
$owner->setProperty($this->nodeName, $this->nodeValue);
} elseif ($classInterface === BpmnDocument::IS_ARRAY) {
$bpmnElement = [];
foreach ($this->attributes as $attribute) {
$bpmnElement[$attribute->nodeName] = $attribute->nodeValue;
}
} else {
$bpmnElement = $this->ownerDocument->getFactory()->create($classInterface);
$bpmnElement->setOwnerDocument($this->ownerDocument);
$bpmnElement->setBpmnElement($this);
$id ? $this->ownerDocument->indexBpmnElement($id, $bpmnElement) : null;
$bpmnElement->setRepository($this->ownerDocument->getFactory());
if ($bpmnElement instanceof CallableElementInterface) {
$bpmnElement->setEngine($this->ownerDocument->getEngine());
}
if ($bpmnElement instanceof FlowNodeInterface) {
$process = $this->ownerDocument->getElementInstanceById($this->parentNode->getAttribute('id'));
$bpmnElement->setOwnerProcess($process);
$bpmnElement->setProcess($process);
}
$this->loadParentRef($mapProperties, $bpmnElement);
foreach ($this->attributes as $attribute) {
$this->setBpmnPropertyRef($attribute, $mapProperties, $bpmnElement);
}
$this->loadBodyContent($mapProperties, $bpmnElement);
$this->loadChildElements($bpmnElement, $mapProperties);
}
return $bpmnElement;
}
/**
* Load child elements.
*
* @param EntityInterface $owner
* @param array $mapProperties
*/
private function loadChildElements(EntityInterface $owner, array $mapProperties)
{
foreach ($this->childNodes as $node) {
if (!($node instanceof self)) {
continue;
}
$bpmn = $node->getBpmnElementInstance($owner);
if ($bpmn) {
$this->setBpmnPropertyTo($bpmn, $node, $mapProperties, $owner);
}
}
}
/**
* Set value of BPMN property.
*
* @param mixed $value
* @param \ProcessMaker\Nayra\Storage\BpmnElement $node
* @param array $mapProperties
* @param \ProcessMaker\Nayra\Contracts\Bpmn\EntityInterface $to
*/
private function setBpmnPropertyTo($value, self $node, array $mapProperties, EntityInterface $to)
{
foreach ($mapProperties as $name => $property) {
list($multiplicity, $type) = $property;
$isThisProperty = (is_string($type) && is_subclass_of($value, $type))
|| (is_array($type) && $node->namespaceURI === $type[0] && $node->localName === $type[1]);
if ($isThisProperty && $multiplicity === 'n') {
$to->addProperty($name, $value);
} elseif ($isThisProperty && $multiplicity === '1') {
$setter = 'set' . $name;
method_exists($to, $setter) ? $to->$setter($value)
: $to->setProperty($name, $value);
}
}
}
/**
* Set BPMN property reference.
*
* @param DOMAttr $node
* @param array $mapProperties
* @param EntityInterface $bpmnElement
*
* @return void
*/
private function setBpmnPropertyRef(DOMAttr $node, array $mapProperties, EntityInterface $bpmnElement)
{
foreach ($mapProperties as $name => $property) {
list($multiplicity, $type) = $property;
$isThisProperty = (is_array($type) && ($node->namespaceURI === $type[0] || $node->namespaceURI === null)
&& $node->localName === $type[1]);
if ($isThisProperty && $multiplicity == '1') {
$id = $node->value;
$ref = $this->ownerDocument->getElementInstanceById($id);
$setter = 'set' . $name;
method_exists($bpmnElement, $setter) ? $bpmnElement->$setter($ref)
: $bpmnElement->setProperty($name, $ref);
return;
}
if ($node->name === $name && $property === BpmnDocument::IS_BOOLEAN) {
$value = strtolower($node->value) === 'true';
$setter = 'set' . $name;
method_exists($bpmnElement, $setter) ? $bpmnElement->$setter($value)
: $bpmnElement->setProperty($name, $value);
return;
}
}
$setter = 'set' . $node->name;
method_exists($bpmnElement, $setter) ? $bpmnElement->$setter($node->value)
: $bpmnElement->setProperty($node->name, $node->value);
}
/**
* Load body content.
*
* @param array $mapProperties
* @param EntityInterface $bpmnElement
*/
private function loadBodyContent(array $mapProperties, EntityInterface $bpmnElement)
{
foreach ($mapProperties as $name => $property) {
list($multiplicity, $type) = $property;
$isThisProperty = $type === BpmnDocument::DOM_ELEMENT_BODY;
if ($isThisProperty && $multiplicity === '1') {
$bpmnElement->setProperty($name, $this->textContent);
}
}
}
/**
* Set value of BPMN property.
*
* @param array $mapProperties
* @param \ProcessMaker\Nayra\Contracts\Bpmn\EntityInterface $bpmnElement
*/
private function loadParentRef(array $mapProperties, EntityInterface $bpmnElement)
{
foreach ($mapProperties as $name => $property) {
$isThisProperty = $property === BpmnDocument::PARENT_NODE;
if ($isThisProperty) {
$bpmnElement->setProperty($name, $this->parentNode->getBpmnElementInstance());
}
}
}
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/EventBusInterface.php | src/ProcessMaker/Nayra/Contracts/EventBusInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts;
interface EventBusInterface
{
/**
* Register an event listener with the dispatcher.
*
* @param string|array $events
* @param mixed $listener
*
* @return void
*/
public function listen($events, $listener);
/**
* Determine if a given event has listeners.
*
* @param string $eventName
*
* @return bool
*/
public function hasListeners($eventName);
/**
* Register an event subscriber with the dispatcher.
*
* @param object|string $subscriber
*
* @return void
*/
public function subscribe($subscriber);
/**
* Dispatch an event until the first non-null response is returned.
*
* @param string|object $event
* @param mixed $payload
*
* @return array|null
*/
public function until($event, $payload = []);
/**
* Dispatch an event and call the listeners.
*
* @param string|object $event
* @param mixed $payload
* @param bool $halt
*
* @return array|null
*/
public function dispatch($event, $payload = [], $halt = false);
/**
* Register an event and payload to be fired later.
*
* @param string $event
* @param array $payload
*
* @return void
*/
public function push($event, $payload = []);
/**
* Flush a set of pushed events.
*
* @param string $event
*
* @return void
*/
public function flush($event);
/**
* Remove a set of listeners from the dispatcher.
*
* @param string $event
*
* @return void
*/
public function forget($event);
/**
* Forget all of the queued listeners.
*
* @return void
*/
public function forgetPushed();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/RepositoryInterface.php | src/ProcessMaker/Nayra/Contracts/RepositoryInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts;
use ProcessMaker\Nayra\Contracts\Bpmn\FlowNodeInterface;
/**
* Repository interface to create BPMN objects.
*/
interface RepositoryInterface
{
/**
* Creates an instance of the interface passed
*
* @param string $interfaceName Fully qualified name of the interface
* @param array ...$constructorArguments arguments of class' constructor
*
* @return mixed
*/
public function create($interfaceName, ...$constructorArguments);
/**
* Create instance of Activity.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface
*/
public function createActivity();
/**
* Create instance of CallActivity.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\CallActivityInterface
*/
public function createCallActivity();
/**
* Create instance of Collaboration.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\CollaborationInterface
*/
public function createCollaboration();
/**
* Create instance of ConditionalEventDefinition.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ConditionalEventDefinitionInterface
*/
public function createConditionalEventDefinition();
/**
* Create instance of DataInput.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\DataInputInterface
*/
public function createDataInput();
/**
* Create instance of DataOutput.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\DataOutputInterface
*/
public function createDataOutput();
/**
* Create instance of DataStore.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\DataStoreInterface
*/
public function createDataStore();
/**
* Create instance of EndEvent.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface
*/
public function createEndEvent();
/**
* Create instance of ExclusiveGateway.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\EventBasedGatewayInterface
*/
public function createEventBasedGateway();
/**
* Create instance of ErrorEventDefinition.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ErrorEventDefinitionInterface
*/
public function createErrorEventDefinition();
/**
* Create instance of Error.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ErrorInterface
*/
public function createError();
/**
* Create instance of ExclusiveGateway.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ExclusiveGatewayInterface
*/
public function createExclusiveGateway();
/**
* Create instance of Flow.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\FlowInterface
*/
public function createFlow();
/**
* Create instance of FormalExpression.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\FormalExpressionInterface
*/
public function createFormalExpression();
/**
* Create instance of InclusiveGateway.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\InclusiveGatewayInterface
*/
public function createInclusiveGateway();
/**
* Create instance of InputSet.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\InputSetInterface
*/
public function createInputSet();
/**
* Create instance of IntermediateCatchEvent.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\IntermediateCatchEventInterface
*/
public function createIntermediateCatchEvent();
/**
* Create instance of IntermediateThrowEvent.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\IntermediateThrowEventInterface
*/
public function createIntermediateThrowEvent();
/**
* Create instance of ItemDefinition.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ItemDefinitionInterface
*/
public function createItemDefinition();
/**
* Create instance of Lane.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\LaneInterface
*/
public function createLane();
/**
* Create instance of LaneSet.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\LaneSetInterface
*/
public function createLaneSet();
/**
* Create instance of MessageEventDefinition.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\MessageEventDefinitionInterface
*/
public function createMessageEventDefinition();
/**
* Create instance of MessageFlow.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\MessageFlowInterface
*/
public function createMessageFlow();
/**
* Create instance of Message.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\MessageInterface
*/
public function createMessage();
/**
* Create instance of Operation.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\OperationInterface
*/
public function createOperation();
/**
* Create instance of OutputSet.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\OutputSetInterface
*/
public function createOutputSet();
/**
* Create instance of ParallelGateway.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ParallelGatewayInterface
*/
public function createParallelGateway();
/**
* Create instance of Participant.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ParticipantInterface
*/
public function createParticipant();
/**
* Create instance of Process.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface
*/
public function createProcess();
/**
* Create instance of ScriptTask.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\ScriptTaskInterface
*/
public function createScriptTask();
/**
* Create instance of SignalEventDefinition.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\SignalEventDefinitionInterface
*/
public function createSignalEventDefinition();
/**
* Create instance of Signal.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\SignalInterface
*/
public function createSignal();
/**
* Create instance of StartEvent.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\StartEventInterface
*/
public function createStartEvent();
/**
* Create instance of State.
*
* @param FlowNodeInterface $owner
* @param string $name
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\StateInterface
*/
public function createState(FlowNodeInterface $owner, $name = '');
/**
* Create instance of TerminateEventDefinition.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\TerminateEventDefinitionInterface
*/
public function createTerminateEventDefinition();
/**
* Create instance of TimerEventDefinition.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\TimerEventDefinitionInterface
*/
public function createTimerEventDefinition();
/**
* Create an execution instance repository.
*
* @return \ProcessMaker\Test\Models\ExecutionInstanceRepository
*/
public function createExecutionInstanceRepository();
/**
* Create a StandardLoopCharacteristics.
* @return \ProcessMaker\Nayra\Contracts\Bpmn\StandardLoopCharacteristicsInterface
*/
public function createStandardLoopCharacteristics();
/**
* Creates a TokenRepository
*
* @return \ProcessMaker\Nayra\Contracts\Repositories\TokenRepositoryInterface
*/
public function getTokenRepository();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Storage/BpmnDocumentInterface.php | src/ProcessMaker/Nayra/Contracts/Storage/BpmnDocumentInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Storage;
use ProcessMaker\Nayra\Contracts\Bpmn\EntityInterface;
use ProcessMaker\Nayra\Contracts\Repositories\StorageInterface;
/**
* BPMN DOM file interface
*
*
* @method DOMNode appendChild ( DOMNode $newnode )
* @method string C14N ( bool $exclusive , bool $with_comments , array $xpath , array $ns_prefixes )
* @method int C14NFile ( string $uri , bool $exclusive = FALSE , bool $with_comments = FALSE , array $xpath , array $ns_prefixes )
* @method DOMNode cloneNode ( bool $deep )
* @method DOMAttr createAttribute ( string $name )
* @method DOMAttr createAttributeNS ( string $namespaceURI , string $qualifiedName )
* @method DOMCDATASection createCDATASection ( string $data )
* @method DOMComment createComment ( string $data )
* @method DOMDocumentFragment createDocumentFragment ( void )
* @method DOMElement createElement ( string $name , string $value )
* @method DOMElement createElementNS ( string $namespaceURI , string $qualifiedName , string $value )
* @method DOMEntityReference createEntityReference ( string $name )
* @method DOMProcessingInstruction createProcessingInstruction ( string $target , string $data )
* @method DOMText createTextNode ( string $content )
* @method DOMElement getElementById ( string $elementId )
* @method DOMNodeList getElementsByTagName ( string $name )
* @method DOMNodeList getElementsByTagNameNS ( string $namespaceURI , string $localName )
* @method int getLineNo ( void )
* @method string getNodePath ( void )
* @method bool hasAttributes ( void )
* @method bool hasChildNodes ( void )
* @method DOMNode importNode ( DOMNode $importedNode , bool $deep = FALSE )
* @method DOMNode insertBefore ( DOMNode $newnode , DOMNode $refnode )
* @method bool isDefaultNamespace ( string $namespaceURI )
* @method bool isSameNode ( DOMNode $node )
* @method bool isSupported ( string $feature , string $version )
* @method mixed load ( string $filename , int $options = 0 )
* @method bool loadHTML ( string $source , int $options = 0 )
* @method bool loadHTMLFile ( string $filename , int $options = 0 )
* @method mixed loadXML ( string $source , int $options = 0 )
* @method string lookupNamespaceUri ( string $prefix )
* @method string lookupPrefix ( string $namespaceURI )
* @method void normalize ( void )
* @method void normalizeDocument ( void )
* @method bool registerNodeClass ( string $baseclass , string $extendedclass )
* @method bool relaxNGValidate ( string $filename )
* @method bool relaxNGValidateSource ( string $source )
* @method DOMNode removeChild ( DOMNode $oldnode )
* @method DOMNode replaceChild ( DOMNode $newnode , DOMNode $oldnode )
* @method int save ( string $filename , int $options = 0 )
* @method string saveHTML ( DOMNode $node = NULL )
* @method int saveHTMLFile ( string $filename )
* @method string saveXML ( DOMNode $node , int $options = 0 )
* @method bool schemaValidate ( string $filename , int $flags = 0 )
* @method bool schemaValidateSource ( string $source , int $flags )
* @method bool validate ( void )
* @method int xinclude ( int $options = 0 )
*/
interface BpmnDocumentInterface extends StorageInterface
{
/**
* Get the BPMN elements mapping.
*
* @return array
*/
public function getBpmnElementsMapping();
/**
* Set a BPMN element mapping.
*
* @param string $namespace
* @param string $tagName
* @param mixed $mapping
*
* @return $this
*/
public function setBpmnElementMapping($namespace, $tagName, $mapping);
/**
* Find a element by id.
*
* @param string $id
*
* @return BpmnElement
*/
public function findElementById($id);
/**
* Index a BPMN element by id.
*
* @param string $id
* @param EntityInterface $bpmn
*/
public function indexBpmnElement($id, EntityInterface $bpmn);
/**
* Verify if the BPMN element identified by id was previously loaded.
*
* @param string $id
*
* @return bool
*/
public function hasBpmnInstance($id);
/**
* Get a BPMN element by id.
*
* @param string $id
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\EntityInterface
*/
public function getElementInstanceById($id);
/**
* Return true if the element instance exists in the Process.
*
* @param string $id
*
* @return bool
*/
public function hasElementInstance($id);
/**
* Get skipElementsNotImplemented property.
*
* If set to TRUE, skip loading elements that are not implemented
* If set to FALSE, throw ElementNotImplementedException
*
* @return bool
*/
public function getSkipElementsNotImplemented();
/**
* Set skipElementsNotImplemented property.
*
* If set to TRUE, skip loading elements that are not implemented
* If set to FALSE, throw ElementNotImplementedException
*
* @param bool $skipElementsNotImplemented
*
* @return BpmnDocument
*/
public function setSkipElementsNotImplemented($skipElementsNotImplemented);
/**
* Validate document with BPMN schemas.
*
* @param string $schema
*/
public function validateBPMNSchema($schema);
/**
* Get BPMN validation errors.
*
* @return array
*/
public function getValidationErrors();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Storage/BpmnElementInterface.php | src/ProcessMaker/Nayra/Contracts/Storage/BpmnElementInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Storage;
/**
* BPMN Element interface
*
*
* @method string C14N( bool $exclusive, bool $with_comments, array $xpath, array $ns_prefixes )
* @method string getAttribute( string $name )
* @method string getAttributeNS( string $namespaceURI , string $localName )
* @method string getNodePath( void )
* @method string lookupNamespaceUri( string $prefix )
* @method string lookupPrefix( string $namespaceURI )
* @method DOMNode appendChild( DOMNode $newnode )
* @method int C14NFile( string $uri, bool $exclusive = FALSE, bool $with_comments = FALSE, array $xpath, array $ns_prefixes )
* @method DOMNode cloneNode( bool $deep)
* @method DOMAttr getAttributeNode( string $name )
* @method DOMAttr getAttributeNodeNS( string $namespaceURI , string $localName )
* @method DOMNodeList getElementsByTagName( string $name )
* @method DOMNodeList getElementsByTagNameNS( string $namespaceURI , string $localName )
* @method int getLineNo( void )
* @method DOMNode insertBefore( DOMNode $newnode [, DOMNode $refnode )
* @method DOMNode removeChild( DOMNode $oldnode )
* @method DOMNode replaceChild( DOMNode $newnode , DOMNode $oldnode )
* @method DOMAttr setAttribute( string $name , string $value )
* @method DOMAttr setAttributeNode( DOMAttr $attr )
* @method DOMAttr setAttributeNodeNS( DOMAttr $attr )
* @method bool hasAttribute( string $name )
* @method bool hasAttributeNS( string $namespaceURI , string $localName )
* @method bool hasAttributes( void )
* @method bool hasChildNodes( void )
* @method bool isDefaultNamespace( string $namespaceURI )
* @method bool isSameNode( DOMNode $node )
* @method bool isSupported( string $feature , string $version )
* @method void normalize( void )
* @method bool removeAttribute( string $name )
* @method bool removeAttributeNode( DOMAttr $oldnode )
* @method bool removeAttributeNS( string $namespaceURI , string $localName )
* @method void setAttributeNS( string $namespaceURI , string $qualifiedName , string $value )
* @method void setIdAttribute( string $name , bool $isId )
* @method void setIdAttributeNode( DOMAttr $attr , bool $isId )
* @method void setIdAttributeNS( string $namespaceURI , string $localName , bool $isId )
*/
interface BpmnElementInterface
{
/**
* Get instance of the BPMN element.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\EntityInterface
*/
public function getBpmnElementInstance();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/FormalExpressionInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/FormalExpressionInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
use ProcessMaker\Nayra\Contracts\Bpmn\EntityInterface;
interface FormalExpressionInterface extends EntityInterface
{
const BPMN_PROPERTY_LANGUAGE = 'language';
const BPMN_PROPERTY_EVALUATES_TO_TYPE_REF = 'evaluatesToTypeRef';
const BPMN_PROPERTY_BODY = 'body';
/**
* Get the expression language.
*
* @return string
*/
public function getLanguage();
/**
* Get the type that this Expression returns when evaluated.
*
* @return string
*/
public function getEvaluatesToType();
/**
* Get the body of the Expression.
*
* @return string
*/
public function getBody();
/**
* Set the body of the Expression.
*
* @param string $body
*/
public function setBody($body);
/**
* Invoke the format expression.
*
* @param mixed $data
*
* @return string
*/
public function __invoke($data);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/PropertyInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/PropertyInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* Property interface.
*/
interface PropertyInterface extends ItemAwareElementInterface
{
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/MessageEventDefinitionInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/MessageEventDefinitionInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
use ProcessMaker\Nayra\Contracts\Engine\EngineInterface;
/**
* MessageEventDefinition interface.
*/
interface MessageEventDefinitionInterface extends EventDefinitionInterface
{
const EVENT_THROW_EVENT_DEFINITION = 'ThrowMessageEvent';
const EVENT_CATCH_EVENT_DEFINITION = 'CatchMessageEvent';
const BPMN_PROPERTY_OPERATION = 'operationRef';
const BPMN_PROPERTY_OPERATION_REF = 'operationRef';
const BPMN_PROPERTY_MESSAGE = 'message';
const BPMN_PROPERTY_MESSAGE_REF = 'messageRef';
/**
* Get the Operation that is used by the Message Event.
*
* @return OperationInterface
*/
public function getOperation();
/**
* Get the Operation that is used by the Message Event.
*
* @param OperationInterface $operation
*
* @return $this
*/
public function setOperation(OperationInterface $operation);
/**
* Returns the event definition payload (message, signal, etc.)
*
* @return mixed
*/
public function getPayload();
/**
* Sets the message to be used in the message event definition
*
* @param MessageInterface $message
*
* @return $this
*/
public function setPayload(MessageInterface $message);
/**
* Check if the $eventDefinition should be catch
*
* @param EventDefinitionInterface $eventDefinition
*
* @return bool
*/
public function shouldCatchEventDefinition(EventDefinitionInterface $eventDefinition);
/**
* Register event with a catch event
*
* @param EngineInterface $engine
* @param CatchEventInterface $element
*/
public function registerWithCatchEvent(EngineInterface $engine, CatchEventInterface $element);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/ProcessCollectionInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/ProcessCollectionInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* Collection of processes.
*/
interface ProcessCollectionInterface extends CollectionInterface
{
/**
* Add an element to the collection.
*
* @param ProcessInterface $element
*
* @return $this
*/
public function add(ProcessInterface $element);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/GatewayInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/GatewayInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
use ProcessMaker\Nayra\Contracts\Bpmn\FlowNodeInterface;
use ProcessMaker\Nayra\Contracts\RepositoryInterface;
/**
* Gateway used to control how the Process flows.
*/
interface GatewayInterface extends FlowNodeInterface
{
const BPMN_PROPERTY_DEFAULT = 'default';
/**
* Events defined for Gateway
*/
const EVENT_GATEWAY_TOKEN_ARRIVES = 'GatewayTokenArrives';
const EVENT_GATEWAY_ACTIVATED = 'GatewayActivated';
const EVENT_GATEWAY_EXCEPTION = 'GatewayException';
const EVENT_GATEWAY_TOKEN_PASSED = 'GatewayTokenPassed';
const EVENT_GATEWAY_TOKEN_CONSUMED = 'GatewayTokenConsumed';
/**
* Token states defined for Gateway
*/
const TOKEN_STATE_INCOMING = 'INCOMING';
const TOKEN_STATE_OUTGOING = 'OUTGOING';
/**
* Get Process of the gateway.
*
* @return ProcessInterface
*/
public function getProcess();
/**
* Get Process of the gateway.
*
* @param \ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface $process
*
* @return ProcessInterface
*/
public function setProcess(ProcessInterface $process);
/**
* Create a flow to a target node.
*
* @param \ProcessMaker\Nayra\Contracts\Bpmn\FlowNodeInterface $target
* @param callable $condition
* @param bool $isDefault
* @param RepositoryInterface $factory
*
* @return $this
*
* @internal param FlowRepositoryInterface $flowRepository
*/
public function createConditionedFlowTo(FlowNodeInterface $target, callable $condition, $isDefault, RepositoryInterface $factory);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/InclusiveGatewayInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/InclusiveGatewayInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* Inclusive Gateway Interface
*/
interface InclusiveGatewayInterface extends GatewayInterface
{
/**
* Returns the list of conditioned transitions of the gateway
*
* @return \ProcessMaker\Nayra\Bpmn\Collection
*/
public function getConditionedTransitions();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/MessageInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/MessageInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
use ProcessMaker\Nayra\Contracts\RepositoryInterface;
/**
* Behavior that must implement all event messages
*/
interface MessageInterface extends EntityInterface
{
const BPMN_PROPERTY_ITEM = 'item';
const BPMN_PROPERTY_ITEM_REF = 'itemRef';
/**
* Get the ItemDefinition is used to define the payload of the Message.
*
* @return ItemDefinitionInterface
*/
public function getItem();
/**
* Returns the id of the message
*
* @return string
*/
public function getId();
/**
* Sets the id of the message
*
* @param string $value
*/
public function setId($value);
/**
* Returns the name of the message
*
* @return string
*/
public function getName();
/**
* Allows to set the item
*
* @param ItemDefinitionInterface $item
*
* @return $this
*/
public function setItem(ItemDefinitionInterface $item);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/ConnectionInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/ConnectionInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
use ProcessMaker\Nayra\Bpmn\State;
/**
* Interface to connect States and Transitions nodes.
*/
interface ConnectionInterface
{
/**
* Get the origin node (state or transition) of the connection.
*
* @return ConnectionNodeInterface Origin element
*/
public function origin();
/**
* Get the target node (state or transition) of the connection.
*
* @return ConnectionNodeInterface Target element
*/
public function target();
/**
* Get the origin node of the connection as a state.
*
* @return StateInterface Origin element
*/
public function originState();
/**
* Get the target node of the connection as a state.
*
* @return StateInterface Target element
*/
public function targetState();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/MessageFlowInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/MessageFlowInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* A Message Flow is used to show the flow of Messages between two Participants
* that are prepared to send and receive them.
*/
interface MessageFlowInterface extends EntityInterface
{
const BPMN_PROPERTY_SOURCE = 'source';
const BPMN_PROPERTY_TARGET = 'target';
const BPMN_PROPERTY_SOURCE_REF = 'sourceRef';
const BPMN_PROPERTY_TARGET_REF = 'targetRef';
const BPMN_PROPERTY_COLLABORATION = 'collaboration';
/**
* @return InteractionNodeInterface
*/
public function getSource();
/**
* @return InteractionNodeInterface
*/
public function getTarget();
/**
* Set message of the message flow.
*
* @param \ProcessMaker\Nayra\Contracts\Bpmn\MessageInterface $message
*
* @return $this
*/
public function setMessage(MessageInterface $message);
/**
* Get message of the message flow.
*
* @return MessageInterface
*/
public function getMessage();
/**
* Set the source of the message flow.
*
* @param \ProcessMaker\Nayra\Contracts\Bpmn\ThrowEventInterface $source
*
* @return $this
*/
public function setSource($source);
/**
* Set the target of the message flow.
*
* @param CatchEventInterface $target
*
* @return $this
*/
public function setTarget($target);
/**
* Sets the collaboration
*
* @param CollaborationInterface $collaboration
*/
public function setCollaboration(CollaborationInterface $collaboration);
/**
* @return CollaborationInterface
*/
public function getCollaboration();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/IntermediateCatchEventInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/IntermediateCatchEventInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* IntermediateCatchEvent interface.
*/
interface IntermediateCatchEventInterface extends CatchEventInterface
{
/*
* Events defined for the the throw event interface
*/
const EVENT_CATCH_EXCEPTION = 'CatchEventException';
const EVENT_CATCH_TOKEN_PASSED = 'CatchEventTokenPassed';
const EVENT_CATCH_TOKEN_CONSUMED = 'CatchEventTokenConsumed';
const EVENT_CATCH_MESSAGE_CATCH = 'CatchEventMessageCatch';
const EVENT_CATCH_MESSAGE_CONSUMED = 'CatchEventMessageConsumed';
const TOKEN_STATE_CLOSED = 'CLOSED';
/**
* Get the activation transition of the element
*
* @return TransitionInterface
*/
public function getActivationTransition();
/**
* Get the active state of the element
*
* @return StateInterface
*/
public function getActiveState();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/BoundaryEventInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/BoundaryEventInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* BoundaryEventInterface interface.
*/
interface BoundaryEventInterface extends CatchEventInterface
{
const BPMN_PROPERTY_CANCEL_ACTIVITY = 'cancelActivity';
const BPMN_PROPERTY_ATTACHED_TO = 'attachedTo';
const BPMN_PROPERTY_ATTACHED_TO_REF = 'attachedToRef';
const EVENT_BOUNDARY_EVENT_CATCH = 'BoundaryEventCatch';
const EVENT_BOUNDARY_EVENT_CONSUMED = 'BoundaryEventConsumed';
const TOKEN_STATE_DISPATCH = 'BoundaryEventDispatch';
/**
* Denotes whether the Activity should be cancelled or not.
*
* @return bool
*/
public function getCancelActivity();
/**
* Set if the Activity should be cancelled or not.
*
* @param bool $cancelActivity
*
* @return BoundaryEventInterface
*/
public function setCancelActivity($cancelActivity);
/**
* Get the Activity that boundary Event is attached to.
*
* @return ActivityInterface
*/
public function getAttachedTo();
/**
* Set the Activity that boundary Event is attached to.
*
* @param ActivityInterface $activity
*
* @return BoundaryEventInterface
*/
public function setAttachedTo(ActivityInterface $activity);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/EndEventInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/EndEventInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* End event interface.
*/
interface EndEventInterface extends ThrowEventInterface
{
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/ParticipantInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/ParticipantInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* Participant of a Collaboration.
*/
interface ParticipantInterface extends EntityInterface
{
const BPMN_PROPERTY_PROCESS = 'process';
const BPMN_PROPERTY_PROCESS_REF = 'processRef';
const BPMN_PROPERTY_PARTICIPANT_MULTIPICITY = 'participantMultiplicity';
/**
* Get the Process that the Participant uses in the Collaboration.
*
* @return ProcessInterface
*/
public function getProcess();
/**
* Set the Process that the Participant uses in the Collaboration.
*
* @param ProcessInterface $process
*
* @return $this
*/
public function setProcess(ProcessInterface $process);
/**
* Get Participant multiplicity for a given interaction.
*
* @return array
*/
public function getParticipantMultiplicity();
/**
* Set Participant multiplicity for a given interaction.
*
* @param array $array
*
* @return $this
*/
public function setParticipantMultiplicity(array $array);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/ErrorInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/ErrorInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* ErrorInterface for the ErrorEventDefinition.
*/
interface ErrorInterface extends EntityInterface
{
const BPMN_PROPERTY_ERROR_CODE = 'errorCode';
/**
* Get the error code of the ErrorEventDefinition
*
* @return string
*/
public function getErrorCode();
/**
* Returns the name of the message
*
* @return string
*/
public function getName();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/CollectionInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/CollectionInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
use SeekableIterator;
use Countable;
/**
* CollectionInterface
*/
interface CollectionInterface extends SeekableIterator, Countable
{
/**
* Count the elements of the collection.
*
* @return int
*/
public function count();
/**
* Find elements of the collection that match the $condition.
*
* @param callable $condition
*
* @return CollectionInterface Filtered collection
*/
public function find($condition);
/**
* Find first element of the collection that match the $condition.
*
* @param callable $condition
*
* @return mixed
*/
public function findFirst(callable $condition);
/**
* Add an element to the collection.
*
* @param mixed $item
*/
public function push($item);
/**
* Pop an element from the collection.
*
* @return mixed
*/
public function pop();
/**
* Unshift element.
*
* @param mixed $item
*
* @return mixed Unshift element
*/
public function unshift($item);
/**
* Get the index of the element in the collection.
*
* @param mixed $item
*
* @return int
*/
public function indexOf($item);
/**
* Sum the $callback result for each element.
*
* @param callable $callback
*
* @return float
*/
public function sum(callable $callback);
/**
* Get a item by index
*
* @return mixed
*/
public function item($index);
/**
* Remove a portion of the collection and replace it with something else.
*
* @param $offset
* @param null $length
* @param null $replacement
* @return array
*/
public function splice($offset, $length = null, $replacement = null);
/**
* Converts the collection to an array
*
* @return array
*/
public function toArray();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/ShapeCollectionInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/ShapeCollectionInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* Collection of shapes.
*/
interface ShapeCollectionInterface extends CollectionInterface
{
/**
* Add an element to the collection.
*
* @param ShapeInterface $element
*
* @return $this
*/
public function add(ShapeInterface $element);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/IntermediateThrowEventInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/IntermediateThrowEventInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* IntermediateThrowEvent interface.
*/
interface IntermediateThrowEventInterface extends ThrowEventInterface
{
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/ObservableInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/ObservableInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* Observable interface.
*/
interface ObservableInterface
{
/**
* Returns the list of observers of the object
*
* @return array
*/
public function getObservers();
/**
* Returns the list of observers of the object
*
* @return array
*/
/**
* Attach a callback to an event.
*
* @param string $event
* @param callable $callback
*/
public function attachEvent($event, callable $callback);
/**
* Detach a callback from an event.
*
* @param string $event
* @param callable $callback
*/
public function detachEvent($event, callable $callback);
/**
* Notify an external event to the observers.
*
* @param $event
* @param array ...$arguments
*/
public function notifyExternalEvent($event, ...$arguments);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/StartEventInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/StartEventInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
use ProcessMaker\Nayra\Contracts\Engine\ExecutionInstanceInterface;
/**
* End event interface.
*/
interface StartEventInterface extends CatchEventInterface
{
/**
* Start event.
*
* @param \ProcessMaker\Nayra\Contracts\Engine\ExecutionInstanceInterface $instance
*
* @return $this;
*/
public function start(ExecutionInstanceInterface $instance);
/**
* Method to be called when a message event arrives
*
* @param EventDefinitionInterface $event
* @param ExecutionInstanceInterface|null $instance
* @param TokenInterface|null $token
*
* @return $this
*/
public function execute(EventDefinitionInterface $event, ExecutionInstanceInterface $instance = null, TokenInterface $token = null);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/CorrelationPropertyInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/CorrelationPropertyInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
interface CorrelationPropertyInterface extends EntityInterface
{
/**
* Get the type of the CorrelationProperty.
*
* @return string
*/
public function getType();
/**
* Get the CorrelationPropertyRetrievalExpressions for this CorrelationProperty,
* representing the associations of FormalExpressions (extraction paths) to
* specific Messages occurring in this Conversation.
*
* @return CorrelationPropertyRetrievalExpressionInterface[]
*/
public function getCorrelationPropertyRetrievalExpressions();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/ShapeInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/ShapeInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* Shape related to an element of the process.
*/
interface ShapeInterface extends EntityInterface
{
/**
* Type of element.
*/
const TYPE = 'bpmnShape';
/**
* Properties.
*/
const PROPERTIES = [
'BOU_UID' => '',
'PRJ_UID' => '',
'DIA_UID' => '',
'ELEMENT_UID' => '',
'BOU_ELEMENT' => '',
'BOU_ELEMENT_TYPE' => '',
'BOU_X' => '0',
'BOU_Y' => '0',
'BOU_WIDTH' => '0',
'BOU_HEIGHT' => '0',
'BOU_REL_POSITION' => '0',
'BOU_SIZE_IDENTICAL' => '0',
'BOU_CONTAINER' => '',
];
/**
* Child elements.
*/
const ELEMENTS = [
];
/**
* Get Process of the shape.
*
* @return ProcessInterface
*/
public function getProcess();
/**
* Get Process of the shape.
*
* @return ProcessInterface
*/
public function setProcess(ProcessInterface $process);
/**
* Get Diagram of the shape.
*
* @return DiagramInterface
*/
public function getDiagram();
/**
* Get Diagram of the shape.
*
* @return DiagramInterface
*/
public function setDiagram(DiagramInterface $diagram);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/ActivityInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/ActivityInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* Activity interface.
*/
interface ActivityInterface extends FlowNodeInterface
{
/**
* Events defined for Activity
*/
const EVENT_ACTIVITY_ACTIVATED = 'ActivityActivated';
const EVENT_ACTIVITY_COMPLETED = 'ActivityCompleted';
const EVENT_ACTIVITY_EXCEPTION = 'ActivityException';
const EVENT_ACTIVITY_CANCELLED = 'ActivityCancelled';
const EVENT_ACTIVITY_CLOSED = 'ActivityClosed';
const EVENT_ACTIVITY_SKIPPED = 'ActivitySkipped';
/**
* Properties and composed elements
*/
const BPMN_PROPERTY_LOOP_CHARACTERISTICS = 'loopCharacteristics';
const BPMN_PROPERTY_IO_SPECIFICATION = 'ioSpecification';
const BPMN_PROPERTY_ERROR = 'error';
/**
* Token states defined for Activity
*/
const TOKEN_STATE_READY = 'READY';
const TOKEN_STATE_ACTIVE = 'ACTIVE';
const TOKEN_STATE_FAILING = 'FAILING';
const TOKEN_STATE_COMPLETED = 'COMPLETED';
const TOKEN_STATE_CLOSED = 'CLOSED';
const TOKEN_STATE_INTERRUPTED = 'INTERRUPTED';
const TOKEN_STATE_CAUGHT_INTERRUPTION = 'CAUGHT_INTERRUPTION';
const TOKEN_STATE_EVENT_INTERRUPTING_EVENT = 'INTERRUPTING_EVENT';
const TOKEN_STATE_WAIT_INTERRUPT = 'WAIT_INTERRUPT';
const TOKEN_STATE_SKIPPED = 'SKIPPED';
/**
* Get Process of the activity.
*
* @return ProcessInterface
*/
public function getProcess();
/**
* Get Process of the activity.
*
* @param ProcessInterface $process
*
* @return ProcessInterface
*/
public function setProcess(ProcessInterface $process);
/**
* Complete the activity instance identified by the token.
*
* @param TokenInterface $token
*
* @return $this
*/
public function complete(TokenInterface $token);
/**
* Get the active state of the element
*
* @return StateInterface
*/
public function getActiveState();
/**
* Get loop characteristics of the activity
*
* @return LoopCharacteristicsInterface
*/
public function getLoopCharacteristics();
/**
* Get loop characteristics of the activity
*
* @param \ProcessMaker\Nayra\Contracts\Bpmn\LoopCharacteristicsInterface $loopCharacteristics
*
* @return LoopCharacteristicsInterface
*/
public function setLoopCharacteristics(LoopCharacteristicsInterface $loopCharacteristics);
/**
* Get the boundary events attached to the activity
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\BoundaryEventInterface[]|\ProcessMaker\Nayra\Contracts\Bpmn\CollectionInterface
*/
public function getBoundaryEvents();
/**
* Notify an event to the element.
*
* @param TokenInterface $token
*/
public function notifyInterruptingEvent(TokenInterface $token);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/CallableElementInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/CallableElementInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
use ProcessMaker\Nayra\Contracts\Engine\EngineInterface;
use ProcessMaker\Nayra\Contracts\Engine\ExecutionInstanceInterface;
/**
* CallableElement interface.
*/
interface CallableElementInterface extends EntityInterface
{
/**
* Set the engine that controls the elements.
*
* @param EngineInterface|null $engine
*
* @return EngineInterface
*/
public function setEngine(EngineInterface $engine = null);
/**
* Get the engine that controls the elements.
*
* @return EngineInterface
*/
public function getEngine();
/**
* Call and create an instance of the callable element.
*
* @return ExecutionInstanceInterface
*/
public function call();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/StateInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/StateInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
use ProcessMaker\Nayra\Contracts\Engine\ExecutionInstanceInterface;
/**
* State of a node in which tokens can be received.
*/
interface StateInterface extends TraversableInterface, ObservableInterface, ConnectionNodeInterface
{
const EVENT_TOKEN_ARRIVED = 'TokenArrived';
const EVENT_TOKEN_CONSUMED = 'TokenConsumed';
/**
* Consume a token from the current state.
*
* @param \ProcessMaker\Nayra\Contracts\Bpmn\TokenInterface $token
*
* @return bool
*/
public function consumeToken(TokenInterface $token);
/**
* Add a new token to the current state.
*
* @param \ProcessMaker\Nayra\Contracts\Engine\ExecutionInstanceInterface|null $instance
* @param array $properties
* @param \ProcessMaker\Nayra\Contracts\Bpmn\TransitionInterface|null $source
*
* @return TokenInterface
*/
public function addNewToken(ExecutionInstanceInterface $instance = null, array $properties = [], TransitionInterface $source = null);
/**
* Create token for the current state.
*
* @param \ProcessMaker\Nayra\Contracts\Engine\ExecutionInstanceInterface|null $instance
* @param array $properties
*
* @return TokenInterface
*/
public function createToken(ExecutionInstanceInterface $instance = null, array $properties = []);
/**
* Add a new token to the current state.
*
* @param \ProcessMaker\Nayra\Contracts\Engine\ExecutionInstanceInterface $instance
* @param \ProcessMaker\Nayra\Contracts\Bpmn\TokenInterface $token
* @param bool $skipEvents
* @param \ProcessMaker\Nayra\Contracts\Bpmn\TransitionInterface|null $source
*
* @return bool
*/
public function addToken(ExecutionInstanceInterface $instance, TokenInterface $token, $skipEvents = false, TransitionInterface $source = null);
/**
* Get the collection of tokens.
*
* @param ExecutionInstanceInterface|null $instance
*
* @return CollectionInterface
*/
public function getTokens(ExecutionInstanceInterface $instance = null);
/**
* Get state name
*
* @return string
*/
public function getName();
/**
* Set state name.
*
* @param string $name
*
* @return $this
*/
public function setName($name);
/**
* Get state index
*
* @return int
*/
public function getIndex();
/**
* Set state name.
*
* @param int $index
*
* @return $this
*/
public function setIndex($index);
/**
* Set the owner node.
*
* @param \ProcessMaker\Nayra\Contracts\Bpmn\FlowNodeInterface $owner
*
* @return $this
*/
public function setOwner(FlowNodeInterface $owner);
/**
* Get the owner node.
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\FlowNodeInterface
*/
public function getOwner();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/EntityInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/EntityInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
use ProcessMaker\Nayra\Contracts\Repositories\StorageInterface;
use ProcessMaker\Nayra\Contracts\RepositoryInterface;
use ProcessMaker\Nayra\Contracts\Storage\BpmnElementInterface;
/**
* Entity could get and set properties for an bpmn element.
*/
interface EntityInterface
{
const BPMN_PROPERTY_ID = 'id';
const BPMN_PROPERTY_NAME = 'name';
/**
* @param array $properties
*/
public function setProperties(array $properties);
/**
* @return array
*/
public function getProperties();
/**
* @param string $name
* @param mixed $value
*
* @return $this
*/
public function setProperty($name, $value);
/**
* @param string $name
* @param mixed $default
*
* @return mixed
*/
public function getProperty($name, $default = null);
/**
* Add value to collection property.
*
* @param string $name
* @param mixed $value
*
* @return $this
*/
public function addProperty($name, $value);
/**
* @return \ProcessMaker\Nayra\Contracts\RepositoryInterface
*/
public function getRepository();
/**
* @param RepositoryInterface $factory
*
* @return $this
*/
public function setRepository(RepositoryInterface $factory);
/**
* Get Entity ID
*
* @return mixed
*/
public function getId();
/**
* Set Entity ID
*
* @param string $id
*
* @return $this
*/
public function setId($id);
/**
* Get the name of the element.
*
* @return string
*/
public function getName();
/**
* Set the name of the element
*
* @param string $name
*
* @return $this
*/
public function setName($name);
/**
* @return \ProcessMaker\Nayra\Contracts\Repositories\StorageInterface
*/
public function getOwnerDocument();
/**
* Get DOM element of this object.
*
* @param StorageInterface $ownerDocument
*
* @return $this
*/
public function setOwnerDocument(StorageInterface $ownerDocument);
/**
* @return \ProcessMaker\Nayra\Contracts\Storage\BpmnElementInterface
*/
public function getBpmnElement();
/**
* Set DOM element of this object.
*
* @param BpmnElementInterface $domElement
*
* @return $this
*/
public function setBpmnElement(BpmnElementInterface $ownerDocument);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/TransitionInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/TransitionInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
use ProcessMaker\Nayra\Contracts\Engine\ExecutionInstanceInterface;
/**
* Rule that defines if a flow node can be transit.
*/
interface TransitionInterface extends ConnectionNodeInterface, ObservableInterface
{
const EVENT_BEFORE_TRANSIT = 'BeforeTransit';
const EVENT_AFTER_CONSUME = 'AfterConsume';
const EVENT_AFTER_TRANSIT = 'AfterTransit';
const EVENT_CONDITIONED_TRANSITION = 'ConditionedTransition';
/**
* Execute a transition.
*
* @param \ProcessMaker\Nayra\Contracts\Engine\ExecutionInstanceInterface $executionInstance
*
* @return bool
*/
public function execute(ExecutionInstanceInterface $executionInstance);
/**
* Evaluates if the transition condition evaluates to true using the data of the execution instance
*
* @param TokenInterface|null $token
* @param ExecutionInstanceInterface|null $executionInstance
*
* @return mixed
*/
public function assertCondition(TokenInterface $token = null, ExecutionInstanceInterface $executionInstance = null);
/**
* Get transition owner element
*
* @return \ProcessMaker\Nayra\Contracts\Bpmn\FlowElementInterface
*/
public function getOwner();
/**
* Find all the paths that complies with the $condition and $while.
*
* @param callable $condition
* @param callable $while
* @param array $path
* @param array $passedthru
* @param array $paths
*
* @return Collection
*/
public function paths(callable $condition, callable $while, $path = [], &$passedthru = [], &$paths = []);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/ExclusiveGatewayInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/ExclusiveGatewayInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* Exclusive Gateway Interface
*/
interface ExclusiveGatewayInterface extends GatewayInterface
{
/**
* Returns the list of conditioned transitions of the gateway
*
* @return \ProcessMaker\Nayra\Bpmn\Collection
*/
public function getConditionedTransitions();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/OutputSetInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/OutputSetInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* OutputSet interface.
*/
interface OutputSetInterface extends EntityInterface
{
const BPMN_PROPERTY_DATA_OUTPUTS = 'dataOutputs';
const BPMN_PROPERTY_DATA_OUTPUT_REFS = 'dataOutputRefs';
/**
* Get DataOutput elements that MAY collectively be outputted.
*
* @return DataOutputInterface[]
*/
public function getDataOutputs();
/**
* Set DataOutput elements that MAY collectively be outputted.
*
* @param CollectionInterface $dataOutputs
*
* @return $this
*/
public function setDataOutputs(CollectionInterface $dataOutputs);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/OperationInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/OperationInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* Operation interface.
*/
interface OperationInterface extends EntityInterface
{
const BPMN_TAG = 'operation';
const BPMN_PROPERTY_IMPLEMENTATION = 'implementationRef';
const BPMN_PROPERTY_IN_MESSAGE = 'inMessage';
const BPMN_PROPERTY_IN_MESSAGE_REF = 'inMessageRef';
const BPMN_PROPERTY_OUT_MESSAGE = 'outMessage';
const BPMN_PROPERTY_OUT_MESSAGE_REF = 'outMessageRef';
const BPMN_PROPERTY_ERRORS = 'errors';
const BPMN_PROPERTY_ERROR_REF = 'errorRef';
/**
* This attribute allows to reference a concrete artifact in the underlying
* implementation technology representing that operation.
*
* @return callable
*/
public function getImplementation();
/**
* Get the input Message of the Operation.
*
* @return MessageInterface
*/
public function getInMessage();
/**
* Get the output Message of the Operation.
*
* @return MessageInterface
*/
public function getOutMessage();
/**
* Get errors that the Operation may return.
*
* @return mixed[]
*/
public function getErrors();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/TerminateEventDefinitionInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/TerminateEventDefinitionInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* ConditionalEventDefinition interface.
*/
interface TerminateEventDefinitionInterface extends EventDefinitionInterface
{
const EVENT_THROW_EVENT_DEFINITION = 'ThrowTerminateEvent';
const EVENT_CATCH_EVENT_DEFINITION = 'CatchTerminateEvent';
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/ActivityCollectionInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/ActivityCollectionInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* Collection of activities.
*/
interface ActivityCollectionInterface extends CollectionInterface
{
/**
* Add an element to the collection.
*
* @param ActivityInterface $element
*
* @return $this
*/
public function add(ActivityInterface $element);
/**
* Get an activity by index.
*
* @param $index
*
* @return ActivityInterface
*/
public function item($index);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/ConditionedTransitionInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/ConditionedTransitionInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* Interface for a conditioned transition.
*/
interface ConditionedTransitionInterface
{
/**
* Set the condition function.
*
* @param callable $condition
*
* @return $this
*/
public function setCondition(callable $condition);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/LoopCardinalityInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/LoopCardinalityInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* Activity interface.
*/
interface LoopCardinalityInterface extends FlowNodeInterface
{
/**
* Events defined for Activity
*/
const EVENT_ACTIVITY_ACTIVATED = 'ActivityActivated';
const EVENT_ACTIVITY_COMPLETED = 'ActivityCompleted';
const EVENT_ACTIVITY_EXCEPTION = 'ActivityException';
const EVENT_ACTIVITY_CANCELLED = 'ActivityCancelled';
const EVENT_ACTIVITY_CLOSED = 'ActivityClosed';
const EVENT_EVENT_TRIGGERED = 'EventTriggered';
/**
* Properties and composed elements
*/
const BPMN_PROPERTY_LOOP_CHARACTERISTICS = 'loopCharacteristics';
/**
* Token states defined for Activity
*/
const TOKEN_STATE_ACTIVE = 'ACTIVE';
const TOKEN_STATE_FAILING = 'FAILING';
const TOKEN_STATE_COMPLETED = 'COMPLETED';
const TOKEN_STATE_CLOSED = 'CLOSED';
/**
* Get Process of the activity.
*
* @return ProcessInterface
*/
public function getProcess();
/**
* Get Process of the activity.
*
* @param ProcessInterface $process
*
* @return ProcessInterface
*/
public function setProcess(ProcessInterface $process);
/**
* Complete the activity instance identified by the token.
*
* @param TokenInterface $token
*
* @return $this
*/
public function complete(TokenInterface $token);
/**
* Get the active state of the element
*
* @return StateInterface
*/
public function getActiveState();
/**
* Get loop characteristics of the activity
*
* @return LoopCharacteristicsInterface
*/
public function getLoopCharacteristics();
/**
* Get loop characteristics of the activity
*
* @param \ProcessMaker\Nayra\Contracts\Bpmn\LoopCharacteristicsInterface $loopCharacteristics
*
* @return LoopCharacteristicsInterface
*/
public function setLoopCharacteristics(LoopCharacteristicsInterface $loopCharacteristics);
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/CorrelationPropertyRetrievalExpressionInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/CorrelationPropertyRetrievalExpressionInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
interface CorrelationPropertyRetrievalExpressionInterface
{
/**
* Get the specific Message the FormalExpression extracts the
* CorrelationProperty from.
*
* @return MessageInterface
*/
public function getMessage();
/**
* Get the FormalExpression that defines how to extract a
* CorrelationProperty from the Message payload.
*
* @return FormalExpressionInterface
*/
public function getMessagePath();
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/src/ProcessMaker/Nayra/Contracts/Bpmn/DataOutputAssociationInterface.php | src/ProcessMaker/Nayra/Contracts/Bpmn/DataOutputAssociationInterface.php | <?php
namespace ProcessMaker\Nayra\Contracts\Bpmn;
/**
* DataOutputAssociation interface.
*/
interface DataOutputAssociationInterface extends DataAssociationInterface
{
}
| php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.