Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Яков
idivbanu
Commits
48680c56
Commit
48680c56
authored
May 29, 2018
by
Яков
Browse files
first
parents
Changes
359
Show whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
359 of 359+
files are displayed.
Plain diff
Email patch
apps/arm/modules/product_prop_value/lib/product_prop_valueGeneratorConfiguration.class.php
0 → 100644
View file @
48680c56
<?php
/**
* product_prop_value module configuration.
*
* @package sf
* @subpackage product_prop_value
* @author Atma
* @version SVN: $Id: configuration.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
product_prop_valueGeneratorConfiguration
extends
BaseProduct_prop_valueGeneratorConfiguration
{
}
apps/arm/modules/product_prop_value/lib/product_prop_valueGeneratorHelper.class.php
0 → 100644
View file @
48680c56
<?php
/**
* product_prop_value module helper.
*
* @package sf
* @subpackage product_prop_value
* @author Atma
* @version SVN: $Id: helper.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
product_prop_valueGeneratorHelper
extends
BaseProduct_prop_valueGeneratorHelper
{
}
apps/arm/modules/review/actions/actions.class.php
0 → 100644
View file @
48680c56
<?php
require_once
dirname
(
__FILE__
)
.
'/../lib/reviewGeneratorConfiguration.class.php'
;
require_once
dirname
(
__FILE__
)
.
'/../lib/reviewGeneratorHelper.class.php'
;
/**
* review actions.
*
* @package sf
* @subpackage review
* @author Atma
* @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
reviewActions
extends
autoReviewActions
{
}
apps/arm/modules/review/config/generator.yml
0 → 100644
View file @
48680c56
generator
:
class
:
sfDoctrineGenerator
param
:
model_class
:
Review
theme
:
admin
non_verbose_templates
:
true
with_show
:
false
singular
:
~
plural
:
~
route_prefix
:
review
with_doctrine_route
:
true
actions_base_class
:
sfActions
order
:
70
config
:
actions
:
~
fields
:
name
:
{
label
:
Имя
}
phone
:
{
label
:
Телефон
}
body
:
{
label
:
Текст
}
file
:
{
label
:
Изображение
}
lang
:
{
label
:
Язык
}
created_at
:
{
label
:
Дата
}
is_activated
:
{
label
:
Опубликован
}
tags_list
:
{
label
:
'
Теги'
}
list
:
layout
:
~
title
:
'
Отзывы'
display
:
[
name
,
phone
,
lang
,
is_activated
,
created_at
]
max_per_page
:
100
sort
:
[
created_at
,
DESC
]
object_actions
:
_delete
:
~
_edit
:
~
search
:
fields
:
[
name
,
phone
]
export
:
false
filter
:
class
:
false
form
:
~
edit
:
title
:
Редактирование отзыва
new
:
title
:
Добавление отзыва
tabs
:
0
:
{
label
:
'
Неопубликованные'
,
where
:
'
r.is_activated
=
0'
}
1
:
{
label
:
'
Опубликованные'
,
where
:
'
r.is_activated
=
1'
}
\ No newline at end of file
apps/arm/modules/review/lib/reviewGeneratorConfiguration.class.php
0 → 100644
View file @
48680c56
<?php
/**
* review module configuration.
*
* @package sf
* @subpackage review
* @author Atma
* @version SVN: $Id: configuration.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
reviewGeneratorConfiguration
extends
BaseReviewGeneratorConfiguration
{
}
apps/arm/modules/review/lib/reviewGeneratorHelper.class.php
0 → 100644
View file @
48680c56
<?php
/**
* review module helper.
*
* @package sf
* @subpackage review
* @author Atma
* @version SVN: $Id: helper.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
reviewGeneratorHelper
extends
BaseReviewGeneratorHelper
{
}
apps/arm/modules/suppliers/actions/actions.class.php
0 → 100644
View file @
48680c56
<?php
require_once
dirname
(
__FILE__
)
.
'/../lib/suppliersGeneratorConfiguration.class.php'
;
require_once
dirname
(
__FILE__
)
.
'/../lib/suppliersGeneratorHelper.class.php'
;
/**
* suppliers actions.
*
* @package sf
* @subpackage suppliers
* @author Atma
* @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
suppliersActions
extends
autoSuppliersActions
{
}
apps/arm/modules/suppliers/config/generator.yml
0 → 100644
View file @
48680c56
generator
:
class
:
sfDoctrineGenerator
param
:
model_class
:
Suppliers
theme
:
admin
non_verbose_templates
:
true
with_show
:
false
singular
:
~
plural
:
~
route_prefix
:
suppliers
with_doctrine_route
:
true
actions_base_class
:
sfActions
order
:
45
hr
:
true
config
:
actions
:
~
fields
:
org
:
{
label
:
Организация
}
fio
:
{
label
:
ФИО
}
email
:
{
label
:
Эл. почта
}
phone
:
{
label
:
Телефон
}
created_at
:
{
label
:
Дата создания
}
list
:
layout
:
~
title
:
'
Поставщики'
display
:
[
org
,
fio
,
phone
,
email
]
max_per_page
:
100
object_actions
:
_delete
:
~
_edit
:
~
search
:
fields
:
[
org
,
fio
]
export
:
false
filter
:
class
:
false
form
:
~
edit
:
title
:
Редактирование поставщика
new
:
title
:
Добавление поставщика
\ No newline at end of file
apps/arm/modules/suppliers/lib/suppliersGeneratorConfiguration.class.php
0 → 100644
View file @
48680c56
<?php
/**
* suppliers module configuration.
*
* @package sf
* @subpackage suppliers
* @author Atma
* @version SVN: $Id: configuration.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
suppliersGeneratorConfiguration
extends
BaseSuppliersGeneratorConfiguration
{
}
apps/arm/modules/suppliers/lib/suppliersGeneratorHelper.class.php
0 → 100644
View file @
48680c56
<?php
/**
* suppliers module helper.
*
* @package sf
* @subpackage suppliers
* @author Atma
* @version SVN: $Id: helper.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
suppliersGeneratorHelper
extends
BaseSuppliersGeneratorHelper
{
}
apps/arm/modules/tag/actions/actions.class.php
0 → 100644
View file @
48680c56
<?php
require_once
dirname
(
__FILE__
)
.
'/../lib/tagGeneratorConfiguration.class.php'
;
require_once
dirname
(
__FILE__
)
.
'/../lib/tagGeneratorHelper.class.php'
;
/**
* tag actions.
*
* @package sf
* @subpackage tag
* @author Atma
* @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
tagActions
extends
autoTagActions
{
protected
function
buildQuery
()
{
$query
=
parent
::
buildQuery
();
$query
->
leftJoin
(
"r.Translation t"
);
return
$query
;
}
}
apps/arm/modules/tag/config/generator.yml
0 → 100644
View file @
48680c56
generator
:
class
:
sfDoctrineGenerator
param
:
model_class
:
Tag
theme
:
admin
non_verbose_templates
:
true
with_show
:
false
singular
:
~
plural
:
~
route_prefix
:
tag
with_doctrine_route
:
true
actions_base_class
:
sfActions
order
:
45
hr
:
true
config
:
actions
:
~
fields
:
title
:
{
label
:
'
Название'
}
title_ru
:
{
label
:
'
Название
RU'
}
title_en
:
{
label
:
'
Название
EN'
}
created_at
:
{
label
:
'
Дата
создания'
}
list
:
layout
:
~
title
:
'
Теги'
display
:
[
_title
]
max_per_page
:
100
object_actions
:
_delete
:
~
_edit
:
~
search
:
fields
:
[
title
]
export
:
false
filter
:
class
:
false
form
:
~
edit
:
title
:
Редактирование тега
new
:
title
:
Добавление тега
\ No newline at end of file
apps/arm/modules/tag/lib/tagGeneratorConfiguration.class.php
0 → 100644
View file @
48680c56
<?php
/**
* tag module configuration.
*
* @package sf
* @subpackage tag
* @author Atma
* @version SVN: $Id: configuration.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
tagGeneratorConfiguration
extends
BaseTagGeneratorConfiguration
{
}
apps/arm/modules/tag/lib/tagGeneratorHelper.class.php
0 → 100644
View file @
48680c56
<?php
/**
* tag module helper.
*
* @package sf
* @subpackage tag
* @author Atma
* @version SVN: $Id: helper.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
tagGeneratorHelper
extends
BaseTagGeneratorHelper
{
}
apps/arm/modules/tag/templates/_title.php
0 → 100644
View file @
48680c56
<?php
echo
$tag
->
getTranslation
()
->
ru
->
title
;
?>
\ No newline at end of file
apps/arm/modules/tag/templates/_title_en.php
0 → 100644
View file @
48680c56
<?php
echo
$tag
->
getTranslation
()
->
en
->
title
;
apps/arm/modules/tag/templates/_title_ru.php
0 → 100644
View file @
48680c56
<?php
echo
$tag
->
getTranslation
()
->
ru
->
title
;
\ No newline at end of file
apps/arm/modules/user/actions/actions.class.php
0 → 100644
View file @
48680c56
<?php
require_once
dirname
(
__FILE__
)
.
'/../lib/userGeneratorConfiguration.class.php'
;
require_once
dirname
(
__FILE__
)
.
'/../lib/userGeneratorHelper.class.php'
;
/**
* user actions.
*
* @package sf
* @subpackage user
* @author Atma
* @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
userActions
extends
autoUserActions
{
protected
function
processForm
(
sfWebRequest
$request
,
sfForm
$form
)
{
$form
->
bind
(
$request
->
getParameter
(
$form
->
getName
()),
$request
->
getFiles
(
$form
->
getName
()));
if
(
$form
->
isValid
())
{
$notice
=
$form
->
getObject
()
->
isNew
()
?
'The item was created successfully.'
:
'The item was updated successfully.'
;
try
{
$user
=
$form
->
save
();
$old
=
$user
->
getModified
(
false
,
true
);
$new
=
$user
->
getModified
(
true
,
true
);
if
(
$user
->
getEmail
()
&&
(
count
(
array_diff
(
$old
,
$new
))
>
0
||
$request
->
hasParameter
(
'_send_password'
)))
{
$mailer
=
$this
->
getMailer
();
$message
=
$mailer
->
compose
(
sfConfig
::
get
(
'app_email_sender'
,
'noreply@'
.
$request
->
getHost
()),
array
(
$user
->
getEmail
()),
'Напоминание пароля '
.
$request
->
getHost
()
);
$message
->
setContentType
(
'text/plain; charset=UTF-8'
);
$message
->
setBody
(
$this
->
getPartial
(
'user/mail_update'
,
array
(
'user'
=>
$user
,
'host'
=>
$request
->
getHost
())));
$result
=
$mailer
->
send
(
$message
);
}
$user
->
setIsSuperAdmin
(
false
);
$user
->
save
();
}
catch
(
Doctrine_Validator_Exception
$e
)
{
$errorStack
=
$form
->
getObject
()
->
getErrorStack
();
$message
=
get_class
(
$form
->
getObject
())
.
' has '
.
count
(
$errorStack
)
.
" field"
.
(
count
(
$errorStack
)
>
1
?
's'
:
null
)
.
" with validation errors: "
;
foreach
(
$errorStack
as
$field
=>
$errors
)
{
$message
.
=
"
$field
("
.
implode
(
", "
,
$errors
)
.
"), "
;
}
$message
=
trim
(
$message
,
', '
);
$this
->
getUser
()
->
setFlash
(
'error'
,
$message
);
return
sfView
::
SUCCESS
;
}
$this
->
dispatcher
->
notify
(
new
sfEvent
(
$this
,
'admin.save_object'
,
array
(
'object'
=>
$user
)));
if
(
$request
->
hasParameter
(
'_save_and_add'
))
{
$this
->
getUser
()
->
setFlash
(
'notice'
,
$notice
.
' You can add another one below.'
);
$this
->
redirect
(
'@user_new'
);
}
elseif
(
$request
->
hasParameter
(
'_save_and_list'
))
{
$this
->
redirect
(
'@user'
);
}
else
{
if
(
!
$request
->
isXmlHttpRequest
())
{
$this
->
getUser
()
->
setFlash
(
'notice'
,
$notice
);
$this
->
redirect
(
array
(
'sf_route'
=>
'user_edit'
,
'sf_subject'
=>
$user
));
}
}
}
else
{
$this
->
getUser
()
->
setFlash
(
'error'
,
'The item has not been saved due to some errors.'
,
false
);
$this
->
getResponse
()
->
addHttpMeta
(
'Sf-Form-Error'
,
'1'
,
true
);
}
}
public
function
executeEdit
(
sfWebRequest
$request
)
{
$this
->
user
=
$this
->
getRoute
()
->
getObject
();
$this
->
form
=
$this
->
configuration
->
getForm
(
$this
->
user
);
$this
->
history
=
Doctrine
::
getTable
(
'ClientOrder'
)
->
findByUserId
(
$this
->
user
->
getId
());
}
}
apps/arm/modules/user/config/generator.yml
0 → 100644
View file @
48680c56
generator
:
class
:
sfDoctrineGenerator
param
:
model_class
:
User
theme
:
admin
non_verbose_templates
:
true
with_show
:
false
singular
:
~
plural
:
~
route_prefix
:
user
with_doctrine_route
:
true
actions_base_class
:
sfActions
order
:
90
skip
:
true
config
:
actions
:
~
fields
:
id
:
{
label
:
'
ID'
}
username
:
{
label
:
'
ИНН'
}
fname
:
{
label
:
'
Фамилия'
}
iname
:
{
label
:
'
Имя'
}
oname
:
{
label
:
'
Отчество'
}
email
:
{
label
:
'
Эл.
почта'
}
city_id
:
{
label
:
'
Город'
}
city
:
{
label
:
'
Город'
}
organization
:
{
label
:
'
Организация'
}
address
:
{
label
:
'
Адрес'
}
phone_number
:
{
label
:
'
Номер
телефона'
}
salt
:
{
label
:
'
'
}
discount
:
{
label
:
'
Скидка'
}
total_debt
:
{
label
:
'
Задолженность'
}
overdue_payment
:
{
label
:
'
Просрочено'
}
password
:
{
label
:
'
Пароль'
}
open_password
:
{
label
:
'
Пароль'
}
is_active
:
{
label
:
'
Активирован'
}
is_super_admin
:
{
label
:
'
Администратор'
}
last_login
:
{
label
:
'
Синхронизация'
}
manager
:
{
label
:
'
Менеджер'
}
manager_id
:
{
label
:
'
Менеджер'
}
created_at
:
{
label
:
'
Дата
регистрации'
}
updated_at
:
{
label
:
'
'
}
list
:
table_method
:
onlyClients
layout
:
~
title
:
'
Клиенты'
display
:
[
_username
,
open_password
,
organization
,
last_login
,
is_active
,
created_at
]
max_per_page
:
100
object_actions
:
_delete
:
~
_edit
:
~
search
:
fields
:
[
username
,
organization
]
export
:
false
actions
:
[]
sort
:
[
last_login
,
desc
]
filter
:
class
:
false
form
:
~
edit
:
title
:
Редактирование
new
:
title
:
Добавление
\ No newline at end of file
apps/arm/modules/user/lib/userGeneratorConfiguration.class.php
0 → 100644
View file @
48680c56
<?php
/**
* user module configuration.
*
* @package sf
* @subpackage user
* @author Atma
* @version SVN: $Id: configuration.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
userGeneratorConfiguration
extends
BaseUserGeneratorConfiguration
{
}
Prev
1
…
3
4
5
6
7
8
9
10
11
…
18
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment