本文整理汇总了PHP中Asset类的典型用法代码示例。如果您正苦于以下问题:PHP Asset类的具体用法?PHP Asset怎么用?PHP Asset使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Asset类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: process
/**
* Process asset content
*
* @param string $content
* @param Asset $asset
*
* @return string
*/
public static function process($content, Asset $asset)
{
// Set Less
$lc = new lessc();
$lc->importDir = dirname($asset->source_file()) . DIRECTORY_SEPARATOR;
return $lc->parse($content);
}
开发者ID:alle,项目名称:assets-merger,代码行数:15,代码来源:Less.php
示例2: run
public function run()
{
// create default user asset
$asset = Asset::where('filename', '=', 'default.png')->first();
if ($asset == NULL) {
$asset = new Asset();
$asset->filename = 'default.png';
$asset->path = 'assets/content/users';
$asset->save();
}
$admin = Role::where('name', '=', 'Admin')->first();
// create default roles
if ($admin == NULL) {
$admin = new Role();
$admin->name = 'Admin';
$admin->save();
}
$adminUser = User::where('username', '=', 'admin')->first();
if ($adminUser != NULL) {
echo "Admin User Already Exsit";
} else {
$adminUser = new User();
$adminUser->username = 'admin';
$adminUser->email = '[email protected]';
$adminUser->password = 'admin';
$adminUser->password_confirmation = 'admin';
$adminUser->confirmation_code = md5(uniqid(mt_rand(), true));
if ($adminUser->save()) {
$adminUser->attachRole($admin);
echo "Admin User Created";
}
}
}
开发者ID:vanderlin,项目名称:Gear2,代码行数:33,代码来源:UserTableSeeder.php
示例3: getDataForResource
/**
* @see Object\ClassDefinition\Data::getDataForResource
* @param Asset $data
* @param null|Model\Object\AbstractObject $object
* @return integer|null
*/
public function getDataForResource($data, $object = null)
{
if ($data instanceof PriceRule) {
return $data->getId();
}
return null;
}
开发者ID:Cube-Solutions,项目名称:pimcore-coreshop,代码行数:13,代码来源:CoreShopPriceRule.php
示例4: setupDatabases
public function setupDatabases()
{
$name = $this->call('migrate', array('--path' => 'app/database/migrations/setup/'));
$name = $this->call('migrate');
// create the roles
$roles = ['Admin', 'Writer', 'Reader'];
foreach ($roles as $r) {
$role = Role::whereName($r)->first();
if ($role == null) {
$role = new Role();
$role->name = $r;
$role->display_name = $r;
$role->save();
$this->info("{$role->id} Creating Role:{$r}");
}
}
foreach (User::all() as $u) {
$this->info("{$u->id} : user: {$u->username}");
}
// add core assets
$m = Asset::findFromTag('missing-user-image');
if ($m == NULL) {
$m = new Asset();
$m->path = "assets/content/uploads";
$m->saveLocalFile(public_path('assets/content/common/missing/profile-default.png'), 'profile-default.png');
$m->tag = 'missing-user-image';
$m->shared = 1;
$m->type = Asset::ASSET_TYPE_IMAGE;
$m->save();
}
$this->comment("****\tAll Databases for Halp have been setup :-) \t****");
return;
}
开发者ID:vanderlin,项目名称:halp,代码行数:33,代码来源:CreateDatabases.php
示例5: test_process
public function test_process()
{
$asset = new Asset(Assets::STYLESHEET, 'test-sass.css.sass');
$sass = file_get_contents($asset->source_file());
$css = file_get_contents($asset->destination_file());
$converted = Asset_Engine_Sass::process($sass, $asset);
$this->assertEquals($css, $converted);
}
开发者ID:boomcms,项目名称:asset-merger,代码行数:8,代码来源:sassTest.php
示例6: test_process
public function test_process()
{
$asset = new Asset(Assets::JAVASCRIPT, 'test-coffee.js.coffee');
$coffee = file_get_contents($asset->source_file());
$js = file_get_contents($asset->destination_file());
$converted = Asset_Engine_Coffee::process($coffee, $asset);
$this->assertEquals($js, $converted);
}
开发者ID:boomcms,项目名称:asset-merger,代码行数:8,代码来源:coffeeTest.php
示例7: addAsset
/**
* @param Asset $asset
*/
public function addAsset(Asset $asset)
{
if ($asset->getAssetHandle()) {
$this->add($asset->getAssetPointer());
} else {
// doesn't check anything. this is useful for layouts, etc... other handle-less assets.
$this->assets[] = $asset;
}
}
开发者ID:ppiedaderawnet,项目名称:concrete5,代码行数:12,代码来源:AssetGroup.php
示例8: userpic
public function userpic()
{
$userpic_id = $this->author_userpic_asset_id;
if (empty($userpic_id) || !is_numeric($userpic_id)) {
return;
}
require_once 'class.mt_asset.php';
$asset = new Asset();
$asset->Load("asset_id = {$userpic_id}");
return $asset;
}
开发者ID:benvanstaveren,项目名称:movabletype,代码行数:11,代码来源:class.mt_author.php
示例9: process
/**
* Process asset content
*
* @param string $content
* @param Asset $asset
*
* @return string
*/
public static function process($content, Asset $asset)
{
// Set error reporting
$old = error_reporting(E_ALL & ~(E_NOTICE | E_DEPRECATED | E_STRICT));
// Set content
CoffeeScript\Init::load();
$options = array('filename' => Debug::path($asset->source_file()), 'header' => FALSE);
$content = CoffeeScript\Compiler::compile($content, $options);
// Set error reporting
error_reporting($old);
return $content;
}
开发者ID:alle,项目名称:assets-merger,代码行数:20,代码来源:Coffee.php
示例10: asset
public function asset()
{
$col_name = "objectasset_asset_id";
$asset = null;
if (isset($this->{$col_name}) && is_numeric($this->{$col_name})) {
$asset_id = $this->{$col_name};
require_once 'class.mt_asset.php';
$asset = new Asset();
$asset->Load("asset_id = {$asset_id}");
}
return $asset;
}
开发者ID:benvanstaveren,项目名称:movabletype,代码行数:12,代码来源:class.mt_objectasset.php
示例11: process
/**
* Process asset content
*
* @param string $content
* @param Asset $asset
* @return string
*/
public static function process($content, Asset $asset)
{
// Set error reporting
$old = error_reporting(E_ALL & ~(E_NOTICE | E_DEPRECATED | E_STRICT));
// Include the engine
include_once Kohana::find_file('vendor/coffeescript/CoffeeScript', 'Init');
// Set content
CoffeeScript\Init::load();
$options = array('filename' => Debug::path($asset->source_file()), 'header' => TRUE);
$content = CoffeeScript\Compiler::compile($content, $options);
// Set error reporting
error_reporting($old);
return $content;
}
开发者ID:boomcms,项目名称:asset-merger,代码行数:21,代码来源:Coffee.php
示例12: get_detail
/**
* フリーマーケット詳細表示画面
*
* @access public
* @param mixed $fleamarket_id フリーマーケットID
* @return void
* @author ida
*/
public function get_detail($fleamarket_id)
{
Asset::css('jquery-ui.min.css', array(), 'add_css');
Asset::js('jquery-ui.min.js', array(), 'add_js');
if (!$fleamarket_id) {
return $this->forward('errors/notfound', 404);
}
$fleamarket = \Model_Fleamarket::findDetail($fleamarket_id);
if (!$fleamarket) {
return $this->forward('errors/notfound', 404);
}
$this->setHtmlReplace(array('AREA' => $this->getArea($fleamarket['prefecture_id']), 'AREA_NAME' => $this->getAreaName($fleamarket['prefecture_id']), 'FLEAMARKET_NAME' => $fleamarket['name'], 'LOCATION_ID' => $fleamarket['location_id'], 'LOCATION_NAME' => $fleamarket['location_name']));
$fleamarket_abouts = \Model_Fleamarket_About::findByFleamarketId($fleamarket_id);
$fleamarket_images = \Model_Fleamarket_Image::findByFleamarketId($fleamarket_id);
$entry_styles = \Model_Fleamarket_Entry_Style::findByFleamarketId($fleamarket_id);
$entries = \Model_Entry::getTotalEntryByFleamarketId($fleamarket_id);
$fleamarket['entries'] = $entries;
$view_model = \ViewModel::forge('search/detail');
$view_model->set('fleamarket', $fleamarket, false);
$view_model->set('fleamarket_images', $fleamarket_images, false);
$view_model->set('fleamarket_abouts', $fleamarket_abouts, false);
$view_model->set('fleamarket_entry_styles', $entry_styles, false);
$view_model->set('entries', $entries, false);
$view_model->set('prefectures', \Config::get('master.prefectures'), false);
$view_model->set('user', $this->login_user, false);
$this->template->content = $view_model;
}
开发者ID:eva-tuantran,项目名称:use-knife-solo-instead-chef-solo-day13,代码行数:35,代码来源:search.php
示例13: __construct
public function __construct()
{
/* Set the Language Based on Agent Browser */
$languages = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
$lang = substr($languages[0], 0, 2);
App::setLocale($lang);
/* Load Assets */
Asset::add('bootstraptheme', 'assets/css/bootstrap-spacelab.css');
Asset::add('bootstrapresponsive', 'assets/css/bootstrap-responsive.css');
Asset::add('charisma', 'assets/css/charisma-app.css');
Asset::add('uniform', 'assets/css/uniform.default.css');
Asset::add('elfinder', 'assets/css/elfinder.min.css');
Asset::add('opaicons', 'assets/css/opa-icons.css');
Asset::add('famfam', 'assets/css/famfam.css');
Asset::add('jqueryloadermin', 'assets/css/jquery.loader-min.css');
Asset::add('reportula', 'assets/css/reportula.css');
Asset::add('jquery', 'assets/js/jquery-2.0.3.min.js');
Asset::add('datatables', 'assets/js/jquery.dataTables.min.js', 'jquery');
Asset::add('jqueryloader', 'assets/js/jquery.loader-min.js', 'jquery');
Asset::add('main', 'assets/js/main.js', 'TableTools');
Asset::add('modal', 'assets/js/bootstrap-modal.js', 'jquery');
/* Get Monolog instance from Laravel */
$monolog = Log::getMonolog();
/* Add the FirePHP handler */
$monolog->pushHandler(new \Monolog\Handler\FirePHPHandler());
/* Resolve Database Names Myslq and Postgres */
if (Config::get('database.default') == 'mysql') {
$this->tables = array('job' => 'Job', 'client' => 'Client', 'files' => 'Files', 'media' => 'Media', 'pool' => 'Pool', 'path' => 'Path', 'filename' => 'Filename', 'file' => 'File', 'jobfiles' => 'JobFiles', 'jobmedia' => 'JobMedia');
} else {
$this->tables = array('job' => 'job', 'client' => 'client', 'files' => 'files', 'media' => 'media', 'pool' => 'pool', 'path' => 'path', 'filename' => 'filename', 'file' => 'file', 'jobfiles' => 'jobfiles', 'jobmedia' => 'jobmedia');
}
}
开发者ID:erpio,项目名称:Reportula,代码行数:32,代码来源:BaseController.php
示例14: __construct
public function __construct()
{
parent::__construct();
Config::set('auth.driver', 'adminauth');
Asset::add('bootstrap', 'bundles/adminify/css/bootstrap.min.css');
Asset::add('style', 'bundles/adminify/css/style.css');
}
开发者ID:SerdarSanri,项目名称:Adminify,代码行数:7,代码来源:loginbase.php
示例15: __construct
/**
* @todo Document this please.
*/
public function __construct()
{
parent::__construct();
// Not logged in or not an admin and don't have permission to see files
if (!$this->current_user or $this->current_user->group !== 'admin' and (!isset($this->permissions['files']) or !isset($this->permissions['files']['wysiwyg']))) {
$this->load->language('files/files');
show_error(lang('files:no_permissions'));
}
ci()->admin_theme = $this->theme_m->get_admin();
// Using a bad slug? Weak
if (empty($this->admin_theme->slug)) {
show_error('This site has been set to use an admin theme that does not exist.');
}
// Make a constant as this is used in a lot of places
defined('ADMIN_THEME') or define('ADMIN_THEME', $this->admin_theme->slug);
// Set the location of assets
Asset::add_path('module', APPPATH . 'modules/wysiwyg/');
Asset::add_path('theme', $this->admin_theme->web_path . '/');
Asset::set_path('theme');
$this->load->library('files/files');
$this->lang->load('files/files');
$this->lang->load('wysiwyg');
$this->lang->load('buttons');
$this->template->set_theme(ADMIN_THEME)->set_layout('wysiwyg', 'admin')->enable_parser(false)->append_css('module::wysiwyg.css')->append_css('jquery/ui-lightness/jquery-ui.css')->append_js('jquery/jquery.js')->append_js('jquery/jquery-ui.min.js')->append_js('plugins.js')->append_js('module::wysiwyg.js');
}
开发者ID:blekedeg,项目名称:lbhpers,代码行数:28,代码来源:WYSIWYG_Controller.php
示例16: action_list
/**
* 予約履歴一覧
*
* @access public
* @param
* @return void
* @author kobayashi
* @author ida
*/
public function action_list()
{
Asset::css('jquery-ui.min.css', array(), 'add_css');
Asset::js('jquery-ui.min.js', array(), 'add_js');
$conditions = $this->getCondition();
$condition_list = \Model_Entry::createAdminSearchCondition($conditions);
$total_count = \Model_Entry::getCountByAdminSearch($condition_list);
// ページネーション設定
$pagination = \Pagination::forge('entry_pagination', $this->getPaginationConfig($total_count));
$entry_list = \Model_Entry::findAdminBySearch($condition_list, $pagination->current_page, $this->result_per_page);
$view_model = \ViewModel::forge('admin/entry/list');
if (\Input::param('fleamarket_id')) {
$fleamarket = \Model_Fleamarket::find(\Input::param('fleamarket_id'));
$view_model->set('fleamarket', $fleamarket, false);
}
if (\Input::param('user_id')) {
$user = \Model_User::find(Input::param('user_id'));
$view_model->set('user', $user, false);
}
$view_model->set('entry_list', $entry_list, false);
$view_model->set('pagination', $pagination, false);
$view_model->set('conditions', $conditions, false);
$view_model->set('total_count', $total_count);
$this->template->content = $view_model;
}
开发者ID:eva-tuantran,项目名称:use-knife-solo-instead-chef-solo-day13,代码行数:34,代码来源:entry.php
示例17: fire
/**
* Execute the console command.
*
* @return mixed
*/
public function fire()
{
$expiring_assets = Asset::getExpiringWarrantee(60);
$data['count'] = count($expiring_assets);
$data['email_content'] = '';
foreach ($expiring_assets as $asset) {
$now = date("Y-m-d");
$expires = $asset->warrantee_expires();
$difference = round(abs(strtotime($expires) - strtotime($now)) / 86400);
if ($difference > 30) {
$data['email_content'] .= '<tr style="background-color: #fcffa3;">';
} else {
$data['email_content'] .= '<tr style="background-color:#d9534f;">';
}
$data['email_content'] .= '<td><a href="' . Config::get('app.url') . '/hardware/' . $asset->id . '/view">';
$data['email_content'] .= $asset->name . '</a></td><td>' . $asset->asset_tag . '</td>';
$data['email_content'] .= '<td>' . $asset->warrantee_expires() . '</td>';
$data['email_content'] .= '<td>' . $difference . ' days</td>';
$data['email_content'] .= '</tr>';
}
if (Setting::getSettings()->alert_email != '' && Setting::getSettings()->alerts_enabled == 1) {
if (count($expiring_assets) > 0) {
Mail::send('emails.expiring-report', $data, function ($m) {
$m->to(Setting::getSettings()->alert_email, Setting::getSettings()->site_name);
$m->subject('Expiring Assets Report');
});
}
} else {
if (Setting::getSettings()->alert_email == '') {
echo "Could not send email. No alert email configured in settings. \n";
} elseif (Setting::getSettings()->alerts_enabled != 1) {
echo "Alerts are disabled in the settings. No mail will be sent. \n";
}
}
}
开发者ID:naiwungmusic,项目名称:snipe-it,代码行数:40,代码来源:SendExpirationAlerts.php
示例18: actionIndex
public function actionIndex()
{
$content = '';
$name = '';
$path = [];
if (isset($_GET['active'])) {
$path = explode(".", $_GET['active']);
if (count($path) < 2) {
$ref = new ReflectionClass($_GET['active']);
$filename = $ref->getFileName();
if (strpos($filename, Yii::getPathOfAlias('app')) === 0) {
$this->redirect(['/dev/genModel/index', 'active' => 'app.' . $_GET['active']]);
} else {
if (strpos($filename, Yii::getPathOfAlias('application')) === 0) {
$this->redirect(['/dev/genModel/index', 'active' => 'plansys.' . $_GET['active']]);
}
}
throw new CHttpException(404);
return false;
}
$module = array_shift($path);
$name = $path[count($path) - 1];
$path = implode(".", $path);
$filePath = Yii::getPathOfAlias(($module == 'plansys' ? 'application' : 'app') . ".models." . $path) . ".php";
$content = file_get_contents($filePath);
}
Asset::registerJS('application.static.js.lib.ace');
$this->renderForm('DevGenModelIndex', ['content' => $content, 'name' => $name]);
}
开发者ID:rizabudi,项目名称:plansys,代码行数:29,代码来源:GenModelController.php
示例19: view
public function view()
{
// Group's inputs.
$name_group_inputs = [View::forge('form/group/input', ['label_coltype' => 'col-xs-2', 'input_coltype' => 'col-xs-4', 'input' => Form::input('name', $this->requested_aircraft->name, ['class' => 'form-control', 'type' => 'text']), 'label' => 'A/C Name'], false)];
$general_group_1_inputs = [View::forge('form/group/input', ['label_coltype' => 'col-xs-2', 'input_coltype' => 'col-xs-4', 'input' => Form::input('basic_empty_weight', $this->requested_aircraft->basic_empty_weight, ['class' => 'form-control', 'type' => 'number']) . "kg", 'label' => 'Basic Empty Weight'], false), View::forge('form/group/input', ['label_coltype' => 'col-xs-2', 'input_coltype' => 'col-xs-4', 'input' => Form::input('cg_position', $this->requested_aircraft->cg_position, ['class' => 'form-control', 'type' => 'number']) . "aft of datum", 'label' => 'C of G Position'], false)];
$description_group_inputs = [View::forge('form/group/input', ['label_coltype' => 'col-xs-12', 'input_coltype' => 'col-xs-12', 'input' => Form::textarea('description', $this->requested_aircraft->description, ['class' => 'form-control']), 'label' => 'Description', 'label_left' => true], false)];
$weight_limits_group_1_inputs = [View::forge('form/group/input', ['label_coltype' => 'col-xs-2', 'input_coltype' => 'col-xs-4', 'input' => Form::input('max_ramp_weight', $this->requested_aircraft->max_ramp_weight, ['class' => 'form-control', 'type' => 'text']), 'label' => 'Max Ramp Weight'], false), View::forge('form/group/input', ['label_coltype' => 'col-xs-2', 'input_coltype' => 'col-xs-4', 'input' => Form::input('mctow', $this->requested_aircraft->mctow, ['class' => 'form-control', 'type' => 'text']), 'label' => 'MCTOW'], false)];
$weight_limits_group_2_inputs = [View::forge('form/group/input', ['label_coltype' => 'col-xs-2', 'input_coltype' => 'col-xs-4', 'input' => Form::input('mlw', $this->requested_aircraft->mlw, ['class' => 'form-control', 'type' => 'text']), 'label' => 'MLW'], false), View::forge('form/group/input', ['label_coltype' => 'col-xs-2', 'input_coltype' => 'col-xs-4', 'input' => Form::input('mzfw', $this->requested_aircraft->mzfw, ['class' => 'form-control', 'type' => 'text']), 'label' => 'MZFW'], false)];
$arms_table_template = View::forge('widgets/tablewithactions/template', ['duplicate_action' => false, 'cells' => [View::forge('widgets/tablewithactions/row/cell', ['cell_content' => Form::input('_name', '', ['class' => 'form-control'])], false), View::forge('widgets/tablewithactions/row/cell', ['cell_content' => Form::input('_position', '', ['class' => 'form-control'])], false), View::forge('widgets/tablewithactions/row/cell', ['cell_content' => Form::input('_value', '', ['class' => 'form-control']) . Form::hidden('_type', 'arm')], false)]]);
$arms_table = View::forge('widgets/tablewithactions', ['template_row' => $arms_table_template, 'name' => '_arms', 'coltype' => 'col-xs-12 col-md-6', 'headings' => ['<th>Label</th>', '<th>Arm (aft of datum)</th>', '<th>Max Weight</th>'], 'rows' => $this->arms_table_rows], false);
$cglimits_table_template = View::forge('widgets/tablewithactions/template', ['duplicate_action' => false, 'cells' => [View::forge('widgets/tablewithactions/row/cell', ['cell_content' => Form::input('_position', '', ['class' => 'form-control'])], false), View::forge('widgets/tablewithactions/row/cell', ['cell_content' => Form::input('_value', '', ['class' => 'form-control']) . Form::hidden('_type', 'maxweight') . Form::hidden('_name', 'limit')], false)]]);
$cglimits_table = View::forge('widgets/tablewithactions', ['template_row' => $cglimits_table_template, 'name' => '_arms', 'coltype' => 'col-xs-6', 'headings' => ['<th>Arm (aft of datum)</th>', '<th>Weight Limit</th>'], 'rows' => $this->cglimits_table_rows], false);
$button_group_1_inputs = [Asset::js('tablewithactions.js', false), View::forge('form/button', ['coltype' => 'col-xs-offset-5 col-xs-2', 'link' => 'submit/aircraft/' . $this->id, 'response_target' => './aircraft_form', 'class' => 'form-control btn-success', 'label' => 'Save Changes'], false)];
// Headings
$general_heading = View::forge('form/heading', ['text' => 'General', 'size' => 4], false);
$weight_limits_heading = View::forge('form/heading', ['text' => 'Weight Limits', 'size' => 4], false);
$arms_heading = View::forge('form/heading', ['text' => 'Arms', 'size' => 4], false);
$cg_limits_heading = View::forge('form/heading', ['text' => 'C of G Limits', 'size' => 4], false);
// Groups
$name_group = View::forge('form/group', ['inputs' => $name_group_inputs], false);
$general_group_1 = View::forge('form/group', ['inputs' => $general_group_1_inputs], false);
$description_group = View::forge('form/group', ['inputs' => $description_group_inputs], false);
$weight_limits_group_1 = View::forge('form/group', ['inputs' => $weight_limits_group_1_inputs]);
$weight_limits_group_2 = View::forge('form/group', ['inputs' => $weight_limits_group_2_inputs]);
$buttons_group = View::forge('form/group', ['inputs' => $button_group_1_inputs], false);
$cg_limits_group = View::forge('form/group', ['inputs' => ['<div class="col-xs-6">' . $cglimits_table . '</div>' . '<div class="col-xs-6">' . 'Graph here' . '</div>']], false);
$weightandbalance_section_data = ['heading' => 'Weight and Balance Data', 'unique_id' => Str::random('uuid'), 'groups' => [$general_heading, $name_group, $general_group_1, $description_group, $weight_limits_heading, $weight_limits_group_1, $weight_limits_group_2, $arms_heading, $arms_table, $cg_limits_heading, $cg_limits_group, $buttons_group]];
$weightandbalance_section = View::forge('form/section', $weightandbalance_section_data, false);
$this->aircraft_form = $weightandbalance_section;
}
开发者ID:stabernz,项目名称:wnb,代码行数:30,代码来源:aircraft.php
示例20: load
/**
* Loads a list of entries for the specicifies parameters, returns an array of Search_Backend_Data
*
* @return array
*/
public function load()
{
$entries = array();
$data = $this->db->fetchAll("SELECT * FROM search_backend_data" . $this->getCondition() . $this->getGroupBy() . $this->getOrder() . $this->getOffsetLimit(), $this->model->getConditionVariables());
foreach ($data as $entryData) {
if ($entryData['maintype'] == 'document') {
$element = Document::getById($entryData['id']);
} else {
if ($entryData['maintype'] == 'asset') {
$element = Asset::getById($entryData['id']);
} else {
if ($entryData['maintype'] == 'object') {
$element = Object_Abstract::getById($entryData['id']);
} else {
Logger::err("unknown maintype ");
}
}
}
if ($element) {
$entry = new Search_Backend_Data();
$entry->setId(new Search_Backend_Data_Id($element));
$entry->setFullPath($entryData['fullpath']);
$entry->setType($entryData['type']);
$entry->setSubtype($entryData['subtype']);
$entry->setUserOwner($entryData['userowner']);
$entry->setUserModification($entryData['usermodification']);
$entry->setCreationDate($entryData['creationdate']);
$entry->setModificationDate($entryData['modificationdate']);
$entry->setPublished($entryData['published'] === 0 ? false : true);
$entries[] = $entry;
}
}
$this->model->setEntries($entries);
return $entries;
}
开发者ID:ngocanh,项目名称:pimcore,代码行数:40,代码来源:Resource.php
注:本文中的Asset类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论