Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
4c39c4ae
Commit
4c39c4ae
authored
Jul 22, 2008
by
Petr Skoda
Browse files
CONTRIB-500 causes scales to go *really* slow, use new API credit goes to Alan Trick
parent
dbdb0676
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib.php
View file @
4c39c4ae
<?PHP
// $Id: lib.php,v 1.
2
200
7
/0
5
/2
0 06:0
0:3
0
skodak Exp $
<?PHP
// $Id: lib.php,v 1.
3
200
8
/0
7
/2
2 14:4
0:3
8
skodak Exp $
define
(
'NUM_NONE'
,
'0'
);
define
(
'NUM_NUMBERS'
,
'1'
);
...
...
@@ -146,23 +146,29 @@ function book_get_participants($bookid) {
return
false
;
}
/**
* This function returns if a scale is being used by one book
* it it has support for grading and scales. Commented code should be
* modified if necessary. See forum, glossary or journal modules
* as reference.
* @param $bookid int
* @param $scaleid int
* @return boolean True if the scale is used by any journal
*/
function
book_scale_used
(
$bookid
,
$scaleid
)
{
//This function returns if a scale is being used by one book
//it it has support for grading and scales. Commented code should be
//modified if necessary. See forum, glossary or journal modules
//as reference.
$return
=
false
;
//$rec = get_record('book','id',$bookid,'scale',"-$scaleid");
//
//if (!empty($rec) && !empty($scaleid)) {
// $return = true;
//}
return
$return
;
return
false
;
}
/**
* Checks if scale is being used by any instance of journal
*
* This is used to find out if scale used anywhere
* @param $scaleid int
* @return boolean True if the scale is used by any journal
*/
function
journal_scale_used_anywhere
(
$scaleid
)
{
return
false
;
}
//////////////////////////////////////////////////////////////////////////////////////
/// Any other book functions go here. Each of them must have a name that
/// starts with book_
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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