My favorites
|
Sign in
kohana-mptt
Kohana Code Repository
Project Home
Downloads
Wiki
Issues
Source
Checkout
|
Browse
|
Changes
|
‹r22
r105
Source path:
svn
/
trunk
/
MY_Forge.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
class Forge extends Forge_Core {
//Fetches error message for the function see i18n/*/validation.php for names
//$args can be array or string, first value will be the name of the field
public function error_message($func,$args)
{
// Force args to be an array
if(!is_array($args))
{
$args=array($args);
}
if (isset($this->error_messages[$func]))
{
// Use custom error message
$error = vsprintf($this->error_messages[$func], $args);
}
else
{
// Fetch an i18n error message
$error = Kohana::lang('validation.'.$func, $args);
}
return $error;
}
//gets set attributes
public function get_attr($attr)
{
if(array_key_exists($attr,$this->attr))
return $this->attr[$attr];
return false;
}
}
Show details
Hide details
Change log
r23
by maartenvanvliet on Feb 16, 2008
Diff
[No log message]
Go to:
/trunk/MY_Forge.php
Project members,
sign in
to write a code review
Older revisions
r22
by maartenvanvliet on Feb 16, 2008
Diff
[No log message]
r17
by maartenvanvliet on Feb 14, 2008
Diff
[No log message]
r15
by maartenvanvliet on Jan 30, 2008
Diff
[No log message]
All revisions of this file
File info
Size: 755 bytes, 37 lines
View raw file
Hosted by