Created
June 13, 2011 11:56
-
-
Save francescoagati/1022661 to your computer and use it in GitHub Desktop.
using drupal with pharen lisp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def result | |
(-> (db_select #users #u) | |
(condition "u.uid" 0 "<>") | |
(fields #u [#uid #name #created #access]) | |
(range 0 100) | |
(execute))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('/Users/Francesco/Downloads/Scriptor-pharen-aea8dc4/lang.php'); | |
Lexical::$scopes['bindings'] = array(); | |
$__scope_id = Lexical::init_closure("bindings", 55); | |
$result = db_select("users", "u")->condition("u.uid", 0, "<>")->fields("u", array("uid", "name", "created", "access"))->range(0, 100)->execute(); | |
Lexical::bind_lexing("bindings", 55, '$result', $result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment